Skip to content

Instantly share code, notes, and snippets.

@eastlund
Created July 27, 2015 09:14
Show Gist options
  • Save eastlund/43f19b6986f50c08527a to your computer and use it in GitHub Desktop.
Save eastlund/43f19b6986f50c08527a to your computer and use it in GitHub Desktop.
traverse ambiguity
Building mylittlepony-0.1.0.0...
Preprocessing executable 'encorec' for mylittlepony-0.1.0.0...
[ 1 of 36] Compiling CodeGen.Typeclasses ( src/back/CodeGen/Typeclasses.hs, dist/build/encorec/encorec-tmp/CodeGen/Typeclasses.o )
[ 2 of 36] Compiling Types ( src/types/Types.hs, dist/build/encorec/encorec-tmp/Types.o )
[ 3 of 36] Compiling AST.Meta ( src/ir/AST/Meta.hs, dist/build/encorec/encorec-tmp/AST/Meta.o )
[ 4 of 36] Compiling Identifiers ( src/ir/Identifiers.hs, dist/build/encorec/encorec-tmp/Identifiers.o )
[ 5 of 36] Compiling CCode.Main ( src/back/CCode/Main.hs, dist/build/encorec/encorec-tmp/CCode/Main.o )
[ 6 of 36] Compiling CodeGen.CCodeNames ( src/back/CodeGen/CCodeNames.hs, dist/build/encorec/encorec-tmp/CodeGen/CCodeNames.o )
[ 7 of 36] Compiling CCode.PrettyCCode ( src/back/CCode/PrettyCCode.hs, dist/build/encorec/encorec-tmp/CCode/PrettyCCode.o )
[ 8 of 36] Compiling CodeGen.Type ( src/back/CodeGen/Type.hs, dist/build/encorec/encorec-tmp/CodeGen/Type.o )
[ 9 of 36] Compiling CodeGen.Trace ( src/back/CodeGen/Trace.hs, dist/build/encorec/encorec-tmp/CodeGen/Trace.o )
[10 of 36] Compiling AST.AST ( src/ir/AST/AST.hs, dist/build/encorec/encorec-tmp/AST/AST.o )
src/ir/AST/AST.hs:415:15:
Ambiguous occurrence ‘traverse’
It could refer to either ‘AST.AST.traverse’,
defined at src/ir/AST/AST.hs:393:1
or ‘Prelude.traverse’,
imported from ‘Prelude’ at src/ir/AST/AST.hs:11:8-14
(and originally defined in ‘Data.Traversable’)
make: *** [encorec] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment