
24 Jul
2002
24 Jul
'02
2:35 p.m.
I'm having difficulty compiling under 5.04 using both Arrays and UArrays: module Main where{ import Array; import Data.Array.Unboxed; array_1::UArray(Int)(Int); array_1 = (array (1,3) [(1,7),(2,8),(3,13)]); array_2::Array(Int)(Int); array_2 = (array (1,3) [(1,700),(2,800),(3,1300)]); main::IO (); main = putStrLn "hi world" } This gets me the errors Ambiguous occurrence `array' It could refer to either `Data.Array.Base.array', imported from Data.Array.Unboxed at arrayfailx.hs:6 or `GHC.Arr.array', imported from Array at arrayfailx.hs:5 Suggestions? (I would rather not have to fully qualify every occurence of array, accumArray, and ! in my program.) Ken Takusagawa