Defaulting

1
2
3
4
5
6
7
8
9
10
ghci> :set -fwarn-type-defaults
ghci> []

<interactive>:4:1:
    Warning: Defaulting the following constraint(s) to type `()'
               (Show a0) arising from a use of `print'
    In a stmt of an interactive GHCi command: print it
[]
ghci> null []
True