[Haskell-beginners] Re: Problem with GHCI.

Jorden Mauro jrm8005 at gmail.com
Tue Feb 23 13:42:44 EST 2010


On Tue, Feb 23, 2010 at 1:39 PM, Chimpion Chimpion
<chimpionspeak at gmail.com> wrote:
> Prelude> :d +Monad
>
> <interactive>:1:22:
>     Couldn't match expected type `String -> IO String'
>            against inferred type `()'
>     In the expression: ()
>     In the expression: () :: String -> IO String
>     In the definition of `__cmCompileExpr':
>         __cmCompileExpr = () :: String -> IO String
>
> That is the actual thing.
>
> On 24 February 2010 00:05, Chimpion Chimpion <chimpionspeak at gmail.com>
> wrote:
>>
>> Could anyone tell me why this might be happening? I was trying to add some
>> modules to the GHCi(:d +...).
>>
>>     Couldn't match expected type `String -> IO String'
>>            against inferred type `()'
>>     In the expression: ()
>>     In the expression: () :: String -> IO String
>>     In the definition of `__cmCompileExpr':
>>         __cmCompileExpr = () :: String -> IO String
>>
>> Thank you.

:m +Monad

:d is for something else.


More information about the Beginners mailing list