summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T10963.script
blob: 2bba5b36ef56bd1d268a0357213a93b4ebc277e9 (plain)
1
2
3
4
5
6
7
8
9
:type mapM
:type +d mapM
:t +d length
let foo :: (Num a, Monoid a) => a -> a; foo = undefined
:t +d foo
import Data.Semigroup
instance Semigroup Double where (<>) = (+)
instance Monoid Double where mempty = 0
:t +d foo