[Haskell-cafe] coding standard question

david48 dav.vire+haskell at gmail.com
Mon Jun 29 12:34:27 EDT 2009


On Mon, Jun 29, 2009 at 3:41 PM, Daniel Fischer<daniel.is.fischer at web.de> wrote:
> Am Montag 29 Juni 2009 10:47:05 schrieb david48:
>> connecter :: IConnection conn => conn
>> connecter = connectMySQL mysqlInfo
>>
>> And even though I suspect that's the correct type, it fails too :
>
> No, that's too general a type, that says "whatever inctsnce of IConnection you desire, I

Ah, got that now.

> can deliver it", but connecter can deliver only one type (and there's an IO missing).

Wow I don't know how I managed to leave out the IO part of the
signature since it's there in my source and I thought I copy-pasted.

For now I omit the type signature.

Thanks !

David.


More information about the Haskell-Cafe mailing list