[Haskell-cafe] Getting some funny brackets in Haddock docs
johannes.waldmann at htwk-leipzig.de
Wed Jan 10 10:55:01 UTC 2018
OverloadedLists solves this, in a way?
Prelude> :set -XOverloadedLists
Prelude> import qualified Data.Map.Strict as M
Prelude M> M.size [(2,3)]
because of the IsList instance
Do we want to use this in code examples in the docs?
Equivalently, is it recommended to use this notation in actual code?
The problem I see is that this (and similar) extensions
will be active for all literals in a module -
while we only want it for literals of some specific type.
I know this is handled in the parser, and we don't know the types
at this point.
More information about the Haskell-Cafe