[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Avoid ambiguity when annotating
- Subject: Avoid ambiguity when annotating
- From: Chris Warburton
- Date: Wed, 01 Nov 2017 03:00:41 +0000
- Resolution: fixed
- State: resolved
Tried to annotate DList and getting errors like this from GHCi (invoked
by runTypesScript):
<interactive>:335:104:
Ambiguous occurrence `head'
It could refer to either `Data.DList.head',
imported from `Data.DList'
or `Prelude.head',
imported from `Prelude' (and originally defined in `GHC.List')
This is bad, we should be qualifying everything to prevent this!