Template haskell instance declaration quotations with members don't work in ghci
Inside GHCi, the following quotation fails:
Prelude Language.Haskell.TH> runQ [d| instance Monad ((,) a) where return = (,) undefined; (a,x) >>= f = f x |] <interactive>:1:38: `return' is not a (visible) method of class `Monad' <interactive>:1:68: `>>=' is not a (visible) method of class `Monad'
The same error seems to occur for any typeclass I try. This code works fine inside a module passed to GHC.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information