[Haskell-cafe] Re: Polyvariadic functions operating with a monoid
paczesiowa at gmail.com
Sat Oct 9 07:50:43 EDT 2010
2010/10/9 Kevin Jardine <kevinjardine at gmail.com>:
> I was attempting to turn this into a small library and wanted to avoid
> exporting unwrap.
> I defined:
> polyToMonoid' = unwrap . polyToMonoid
If you disable MonomorphismRestriction this definition typechecks just
fine. Alternatively, you can ask ghci about the type of "unwrap .
polyToMonoid" and paste that into the type sig.
More information about the Haskell-Cafe