Making implicit parameters explicit

Tomasz Zielonka t.zielonka at students.mimuw.edu.pl
Thu Nov 6 22:04:29 EST 2003


On Thu, Nov 06, 2003 at 10:02:26PM +0100, Tomasz Zielonka wrote:
> > GHC complains with:
> > 
> >     Unbound implicit parameter (?req :: Request)
> >       arising from use of `controller1'
> >     In the list element: controller1
> >     In the definition of `controllerList':
> >         controllerList = [controller1, controller2]
> 
> You have just been bitten by monomorphism restriction. Write a type
> signature for controllerList and it should work:
> 
> controllerList :: (?req :: Request) => [String]

Maybe in such situation GHC could suggest that the problem can be caused
by monomorphism restriction ?

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links


More information about the Glasgow-haskell-users mailing list