(Untitled)
Holy shit, Parsec looks fucking fabulous — I think I’m going to set the ORM bullshit aside tonight and hammer out a parser for the subset of Yaml I’d like to use for configuration files.
Speaking of ORM bullshit though, Template Haskell is pretty strange and cool. The concept of handling syntax trees as first-class types and using them to generate code (either as a String, or as first-class types) is fucking awesome and cleaned up the code a fuckton. I think my only issues with it are that it’s nigh impossible to craft complex expressions with [| ... |] notation, and that the syntax constructs are basically undocumented. The later issue will be fixed when the Language.Haskell.TH.Syntax and Language.Haskell.Syntax modules get unified (since the later is documented) — though I doubt anyone’s actively working on that.
I’ll post some examples of dynamically creating record definitions and shit once I’ve got some freetime or something. It’s pretty neat shit (but not as neat as Parsec looks).
No comments