News for hackers. Stuff that matters.
Re:Build Your Own Text Editor by mrkgnao on Thursday April 06, 2017 @12:44AM (#14047971)
https://github.com/jameysharp/corrode/blob/master/src/Langua...

Corrode is absolutely incredible. This file is literate Haskell, which means there's more documentation than code (I guess), and it transforms C into Rust.

Re:Build Your Own Text Editor by taejo on Thursday April 06, 2017 @05:42AM (#14049152)
> This file is literate Haskell, which means there's more documentation than code (I guess)

That's the intent, but to the compiler, the meaning of literate Haskell is that comments are the default, and only lines starting with > contain code

Re:Build Your Own Text Editor by mrkgnao on Thursday April 06, 2017 @08:00AM (#14049765)
I know. The "I guess" was because I hadn't actually counted the lines to see if there were more comments.