blob: c9f23d45d5865777c920674b255430368ab720cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
-- This one foxed the constraint solver (Lint error)
-- See Trac #1494
module ShouldCompile where
import Control.Monad.State
newtype L m r = L (StateT Int m r)
instance Monad m => Monad (L m) where
(>>=) = undefined
return = undefined
zork :: (Monad m) => a -> L m ()
zork = undefined
mumble e = do { modify id; zork e }
|