[Haskell-cafe] [] == []

Taylor Hedberg t at tmh.cc
Tue Mar 10 03:25:41 UTC 2015


On Mon, Mar 9, 2015 at 8:20 PM, Rustom Mody <rustompmody at gmail.com> wrote:
>
> Under -fwarn-type-defaults:
> says
>
> *Have the compiler warn/inform you where in your source the Haskell
> defaulting mechanism for numeric types kicks in.*
>
> Wheres the numeric here?
>

In GHCi, the type defaulting mechanism is extended beyond numerics. See
https://downloads.haskell.org/~ghc/7.8.2/docs/html/users_guide/interactive-evaluation.html#extended-default-rules
.

In this case, the list is defaulting to type [()].
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150309/9ccf75de/attachment.html>


More information about the Haskell-Cafe mailing list