Re: [Haskell-cafe] ANNOUNCE: haskell-names-0.1

2013-06-21 Thread Andrew Cowie
On Thu, 2013-06-20 at 18:13 +0300, Roman Cheplyaka wrote: Namely, it can do the following: * for a module, compute its interface, i.e. the set of entities exported by the module, together with their original names. * for each name in the module, figure out what it refers to —

Re: [Haskell-cafe] ANNOUNCE: haskell-names-0.1

2013-06-21 Thread Michael Sloan
Roman: Awesome! I'm really glad that this is ready for use! Andrew: I have a tool that's a step towards doing this. Instead of using haskell suite, it uses ghci via hint to query module exports, and then uses TH to reify them. This has the benefit of supporting everything that GHC supports,

Re: [Haskell-cafe] ANNOUNCE: haskell-names-0.1

2013-06-21 Thread AlanKim Zimmerman
I have a feeling the work-in-progress Haskell Refactorer using the GHC API may be able to provide this information through its library interface. When I have some time over the weekend I will have a look. Alan On Fri, Jun 21, 2013 at 8:44 AM, Michael Sloan mgsl...@gmail.com wrote: Roman:

[Haskell-cafe] How to make this data type work?

2013-06-21 Thread Magicloud Magiclouds
data ActionData = AD { oldData :: (FromJSON j, ToJSON j) = j , newData :: (FromJSON j, ToJSON j) = j} instance ToJSON ActionData where toJSON (AD o n) = object [ oldData .= o , newData .= n ] instance FromJSON ActionData where parseJSON

Re: [Haskell-cafe] ANNOUNCE: haskell-names-0.1

2013-06-21 Thread Roman Cheplyaka
* Andrew Cowie and...@operationaldynamics.com [2013-06-21 16:12:55+1000] On Thu, 2013-06-20 at 18:13 +0300, Roman Cheplyaka wrote: Namely, it can do the following: * for a module, compute its interface, i.e. the set of entities exported by the module, together with their original

[Haskell-cafe] Fwd: How to make this data type work?

2013-06-21 Thread Miguel Mitrofanov
Forgot to reply all, as usual. Пересылаемое сообщение 21.06.2013, 12:52, Miguel Mitrofanov miguelim...@yandex.ru: Actually, this is not the real error you should care about. Try removing FromJSON instance completely, and you'll get a lot more. And these are fundamental: you

Re: [Haskell-cafe] Nightly builds of GHC HEAD for OS X 10.8

2013-06-21 Thread John Wiegley
John Wiegley jo...@fpcomplete.com writes: Since mid-January, I’ve been running nightly builds of GHC on my Mac Pro for 10.8.x, 64-bit. I’ve decided to make these results publically downloadable here: http://ghc.newartisans.com. Just a note: I'm now including builds and logs for Ubuntu

Re: [Haskell-cafe] Fwd: How to make this data type work?

2013-06-21 Thread Vincent Ambo
Is there a reason why you can't use an explicit type variable? {-# LANGUAGE OverloadedStrings, ExistentialQuantification #-} import Data.Aeson import Control.Applicative import Control.Monad (mzero) data ActionData j = (FromJSON j, ToJSON j) = AD j j instance ToJSON (ActionData j) where

[Haskell-cafe] loop error message

2013-06-21 Thread Omari Norman
I compiled some code with GHC 7.6.3 that produces a simple error at runtime myProgramName: loop At which point the program exits with code 1. Is there documentation for this error anywhere? Does it mean I have some infinite loop in my code somewhere? If so, does GHC catch all infinite loops? I

Re: [Haskell-cafe] loop error message

2013-06-21 Thread Mihai Maruseac
On Sat, Jun 22, 2013 at 12:41 AM, Omari Norman om...@smileystation.com wrote: I compiled some code with GHC 7.6.3 that produces a simple error at runtime myProgramName: loop At which point the program exits with code 1. Is there documentation for this error anywhere? Does it mean I have

Re: [Haskell-cafe] [web-devel] The promising world of Monadic formlets

2013-06-21 Thread Daniel Frumin
This looks interesting. I'll be following the development of it On Jun 20, 2013, at 2:56 PM, Alberto G. Corona agocor...@gmail.com wrote: Here is the example with better rendering and additional information as well as some identifies issues to be solved.