Code Monkey home page Code Monkey logo

haskell-language-conf's Introduction

haskell-language-conf

Hackage


language-conf contains .conf (e.g. nginx configuration) parsers and pretty-printers for the Haskell programming language.

  • Data.Conf exports the .conf parser

  • Data.Conf.PrettyPrint exports the .conf pretty-printer

  • ConfFmt is a .conf file formatter that serves as an example

  • FromConf parses a .conf file and outputs its JSON or YAML representation

  • ToConf parses a JSON or YAML file and outputs its .conf representation

For hcl parsers, see haskell-language-hcl

Install

From source:

make install

Build & Test

make build
make test
make all

Build conffmt

make conffmt

Build fromconf

make fromconf

Build toconf

make toconf

License

Published under the MIT license

haskell-language-conf's People

Contributors

yamadapc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

haskell-language-conf's Issues

Build failure with GHC 9.0.1

src/Data/Conf/PrettyPrint.hs:57:17: error:
    Ambiguous occurrence ‘<>’
    It could refer to
       either ‘Prelude.<>’,
              imported from ‘Prelude’ at src/Data/Conf/PrettyPrint.hs:16:8-28
              (and originally defined in ‘GHC.Base’)
           or ‘Text.PrettyPrint.HughesPJClass.<>’,
              imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Data/Conf/PrettyPrint.hs:28:1-47
              (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
57 |             "#" <> ttext c
   |                 ^^

src/Data/Conf/PrettyPrint.hs:63:13: error:
    Precedence parsing error
        cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression
   |
63 |             ttext t <+> thsep ts <> ";"
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Conf/PrettyPrint.hs:63:34: error:
    Ambiguous occurrence ‘<>’
    It could refer to
       either ‘Prelude.<>’,
              imported from ‘Prelude’ at src/Data/Conf/PrettyPrint.hs:16:8-28
              (and originally defined in ‘GHC.Base’)
           or ‘Text.PrettyPrint.HughesPJClass.<>’,
              imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Data/Conf/PrettyPrint.hs:28:1-47
              (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
63 |             ttext t <+> thsep ts <> ";"
   |                                  ^^
cabal: Failed to build language-conf-0.2.2.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.