Re: [Haskell-cafe] Using lenses

2013-10-03 Thread Gergely Risko
Hi Simon, http://hackage.haskell.org/package/lens-datetime-0.2/docs/Data-Time-Lens.html Read the top of the page. aDay = fromGregorian 2013 08 22 aLocal = LocalTime aDay (TimeOfDay 13 45 28) aUTC = UTCTime aDay 7458.9 aLocal ^. years 2013 aUTC ^. months 8 aDay ^. days 22 aLocal time .~

[Haskell-cafe] ANN: hi2 -- a better indentation mode for Emacs' haskell-mode

2013-08-09 Thread Gergely Risko
Hi, In the last 2-3 weeks I've been working on Haskell indentation inside Emacs. I had some annoyances for a long time and fixed some of them. The new mode is called hi2, it's heavily based on the current haskell-indentation (part of haskell-mode). The changes are mainly to the UI, although, I

[Haskell-cafe] ANN: hflags-0.1, a command line flags library similar to Google's gflags

2012-04-30 Thread Gergely Risko
://blog.risko.hu/2012/04/ann-hflags-0.html Comments and criticism is welcome. Code: http://github.com/errge/hflags Examples: https://github.com/errge/hflags/tree/master/examples Hackage: http://hackage.haskell.org/package/hflags Best regards, Gergely Risko