nikita-volkov / record

Anonymous records
http://hackage.haskell.org/package/record
MIT License
245 stars 8 forks source link

New Syntax? #23

Open Quantumplation opened 9 years ago

Quantumplation commented 9 years ago

Did you change the syntax in the latest release? I can't find any examples of it anywhere. A Readme with (up to date) examples would be super helpful!

nikita-volkov commented 9 years ago

Yes. The library now only provides the types, while the syntax is handled by the "record-preprocessor". Check it out for the basic yet exhaustive demo.

The detailed documentation and tutorial are coming in a week or two, when I fix the error-reporting issues in the preprocessor and make an official release.

Quantumplation commented 9 years ago

Sure! I ended up figuring it out after a few hours of diddling last night. I had seen the demo, but I wasn't familiar enough with Haskell to know how to configure cabal to use a preprocessor. I eventually got it though. Absolutely love this library! Saves an insane amount of headaches, thank you!

rabipelais commented 9 years ago

Can ghci (or cabal-repl) be configured to use the preprocessor? To play around with the records in ghci.

nikita-volkov commented 9 years ago

@rabipelais Not yet. But maybe soon.

dimsuz commented 9 years ago

@nikita-volkov that blog post you wrote about is still coming or I missed it somehow? (checked your blog, didn't find recent posts related to record)

EDIT: Oh, I mean "the detailed documentation and tutorial are coming...", not the blog post :)

nikita-volkov commented 9 years ago

@dimsuz Still in the making. Been too busy lately.

dimsuz commented 9 years ago

Looking forward to it :)

пн, 21 сент. 2015, 16:04, Nikita Volkov notifications@github.com:

@dimsuz https://github.com/dimsuz Still in the making. Been too busy lately.

— Reply to this email directly or view it on GitHub https://github.com/nikita-volkov/record/issues/23#issuecomment-141991689 .