AA
default () = default AnyConstraint ()?Size: a a a
AA
default () = default AnyConstraint ()?MP
default Num IntegerAA
MP
AA
default IntegerMP
AA
KV
AA
KV
KV
AA
default () в начале модуля под импортами?AA
MP
AA
Prelude> Data.Monoid.mempty
()
Prelude> default ()
Prelude> Data.Monoid.mempty
<interactive>:3:1: error:
* Ambiguous type variable `a0' arising from a use of `print'
prevents the constraint `(Show a0)' from being solved.
Probable fix: use a type annotation to specify what `a0' should be.
These potential instances exist:
instance Show Ordering -- Defined in `GHC.Show'
instance Show Integer -- Defined in `GHC.Show'
instance Show a => Show (Maybe a) -- Defined in `GHC.Show'
...plus 22 others
...plus 15 instances involving out-of-scope types
(use -fprint-potential-instances to see them all)
* In a stmt of an interactive GHCi command: print it
Prelude> default (())
Prelude> Data.Monoid.mempty
()
AA
AA
ЖК
stack install, в cabal же всё нормально. В чем может быть дело?ЖК
YS