HN user

sjakobi

65 karma
Posts4
Comments41
View on HN

Hmm, that bike looks very much like Swapfiets' "Deluxe 7" model, which has a 7-gear hub, so not a single speed! The gears also explain why there are three wires leading to the handlebar (2 for the brakes + 1 for the gears).

Nevertheless, the lowest gear on that bike is still not much help on a steep ascend like this.

jdh30, the author of both comments, is a massive OCaml fanboy and Haskell hater. I've seen him try to take Haskell performance numbers and interpret them using the wrong units to make them look worse. I'd take anything that he says about Haskell with a big, big grain of salt!

Hughes' pretty printer works really well for pretty-printing Haskell code, but Wadler's is more flexible for pretty-printing C-style languages where there is a dedented closing brace at the end of scopes.

That's very interesting! So far I've only used Wadler-Leijen-style prettyprinters.

Are Hughes-style pretty printers "better" in some way for Haskell-like documents? If so, why?

Hm, I'm afraid to say that I can't find a good resource on how to write and build docs for Haskell libraries. Maybe that's a tutorial you could write once you've figured it out?! ;)

Here are a few links though:

* https://ndmitchell.com/downloads/slides-drive-by_haskell_con...

* https://haskell-haddock.readthedocs.io/en/latest/markup.html

* https://docs.haskellstack.org/en/stable/build_command/#synon...

Also, maybe join the #haskell-beginners channel on Slack: https://fpchat-invite.herokuapp.com/

There are other platforms too though, e.g. https://www.reddit.com/r/haskellquestions/, https://discourse.haskell.org/

I'm not sure what that statement was based on. The stack project certainly still uses haddock to document its code.

At least some of the projects he cites also use readthedocs for user guides etc.

How do I get (I mean, build in stack) my useful documentation?

Try

    stack haddock --open <packagename>

Not an aspect of the design but an anecdote on their great customer service:

I got my pair of Ortlieb Back Roller Classics as a present four years ago.

After I had used at least one bag almost every weekday since then, the rubber shoulder pads had recently ripped and the inner pockets frayed over the screw nuts.

When I contacted their customer service with pictures of the damage, they sent me replacement shoulder straps and pockets free of charge (they even covered shipping costs) although I had no receipt to prove the age of the bags.