You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[12 of 23] Compiling Language.Python.Common.LexerUtils ( src/Language/Python/Common/LexerUtils.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.1/build/Language/Python/Common/LexerUtils.o )
/private/var/folders/1h/zmwb8fgs24l0djxm06mn_d600000gq/T/stack29031/language-python-0.5.4/src/Language/Python/Common/LexerUtils.hs:98:14: error:
Ambiguous occurrence ‘take’
It could refer to either ‘Prelude.take’,
imported from ‘Prelude’ at src/Language/Python/Common/LexerUtils.hs:14:8-40
(and originally defined in ‘GHC.List’)
or ‘Map.take’,
imported from ‘Data.Map’ at src/Language/Python/Common/LexerUtils.hs:19:1-49
(and originally defined in ‘Data.Map.Internal’)
|
98 | literal = take len str
| ^^^^
/private/var/folders/1h/zmwb8fgs24l0djxm06mn_d600000gq/T/stack29031/language-python-0.5.4/src/Language/Python/Common/LexerUtils.hs:123:17: error:
Ambiguous occurrence ‘drop’
It could refer to either ‘Prelude.drop’,
imported from ‘Prelude’ at src/Language/Python/Common/LexerUtils.hs:14:8-40
(and originally defined in ‘GHC.List’)
or ‘Map.drop’,
imported from ‘Data.Map’ at src/Language/Python/Common/LexerUtils.hs:19:1-49
(and originally defined in ‘Data.Map.Internal’)
|
123 | = toBinary . drop 2
| ^^^^
/private/var/folders/1h/zmwb8fgs24l0djxm06mn_d600000gq/T/stack29031/language-python-0.5.4/src/Language/Python/Common/LexerUtils.hs:139:26: error:
Ambiguous occurrence ‘take’
It could refer to either ‘Prelude.take’,
imported from ‘Prelude’ at src/Language/Python/Common/LexerUtils.hs:14:8-40
(and originally defined in ‘GHC.List’)
or ‘Map.take’,
imported from ‘Data.Map’ at src/Language/Python/Common/LexerUtils.hs:19:1-49
(and originally defined in ‘Data.Map.Internal’)
|
139 | return $ toToken loc (take len str)
| ^^^^
The text was updated successfully, but these errors were encountered:
I get this error compiling using GHC 8.2.2
The text was updated successfully, but these errors were encountered: