Raynes / TConfig

A simple text-based key-value configuration library and parser.
http://hackage.haskell.org/package/tconfig
Other
2 stars 1 forks source link

Feature request: support colon as well as equals for the separation of fields and values #5

Open Mikolaj opened 10 years ago

Mikolaj commented 10 years ago

It may make it white-space sensitive, e.g., take into account the first colon with a space afterwards and ignore other colons.

Raynes commented 10 years ago

I don't really have plans to improve or maintain this library. I'll accept pull requests, but really, toml is a better config file format out of the box and has numerous libraries available for it in Haskell.

Mikolaj commented 10 years ago

Oh, thank you, that's very good to know. And thank you for the tip about toml.

From what I read here

https://github.com/mojombo/toml

it looks like a generalized INI format. Do you know any Haskell libraries that implement it (even roughly) other than the one listed at the page (https://github.com/seliopou/toml --- which is not yet on hackage, sadly) and the following three, which I'm aware of, but they are too big and have a bit too heavy dependencies for me:

http://hackage.haskell.org/package/ConfigFile http://hackage.haskell.org/package/ini http://hackage.haskell.org/package/hsini

(I'm listing them here also in case somebody needed a bit more than TConfig finds them useful.)