[jhc] Compiling bytestring in jhc

Nawal Husnoo nawal at husnoo.com
Sun Aug 16 14:48:47 UTC 2015


Hi,

I'm trying to compile bytestring using JHC, but I'm getting an error:

Why:     context reduction, no instance for: Jhc.Class.Ord.Eq
(Jhc.ForeignPtr.ForeignPtr Jhc.Type.Word.Word8)

Any ideas?

jhc -V
jhc 0.8.2 (mydniquipepo-32)
compiled by ghc-7.8 on a x86_64 running darwin


Thanks,

Nawal.


nawal ~/000_Level_1/095_haskell_2015/jhc/jhc-0.8.2-build$jhc
--build-hl tmp/build/bytestring-0.9.2.0/bytestring.yaml -L- -L. -i-
-itmp/build/bytestring-0.9.2.0
jhc --build-hl tmp/build/bytestring-0.9.2.0/bytestring.yaml -L- -L.
-i- -itmp/build/bytestring-0.9.2.0
jhc 0.8.2 (mydniquipepo-32)
Creating library from description file:
"tmp/build/bytestring-0.9.2.0/bytestring.yaml"
Reading: "tmp/build/bytestring-0.9.2.0/bytestring.yaml"
Finding Dependencies...
Using Ho Cache: '/Users/nawal/.jhc/cache'
Data.ByteString         [tmp/build/bytestring-0.9.2.0/Data/ByteString.hs]
Data.ByteString.Internal
[tmp/build/bytestring-0.9.2.0/Data/ByteString/Internal.hs]
Data.ByteString.Unsafe  [tmp/build/bytestring-0.9.2.0/Data/ByteString/Unsafe.hs]
Data.ByteString.Char8   [tmp/build/bytestring-0.9.2.0/Data/ByteString/Char8.hs]
Data.ByteString.Fusion  [tmp/build/bytestring-0.9.2.0/Data/ByteString/Fusion.hs]
Data.ByteString.Lazy    [tmp/build/bytestring-0.9.2.0/Data/ByteString/Lazy.hs]
Data.ByteString.Lazy.Internal
[tmp/build/bytestring-0.9.2.0/Data/ByteString/Lazy/Internal.hs]
Data.ByteString.Lazy.Char8
[tmp/build/bytestring-0.9.2.0/Data/ByteString/Lazy/Char8.hs]
Typechecking...
[1 of 8] Data.ByteString.Internal(.............................................)
[2 of 8] Data.ByteString.Unsafe(.............................................)
[3 of 8] Data.ByteString  (.........................jhc: user error (
What:    failure
Why:     context reduction, no instance for: Jhc.Class.Ord.Eq
(Jhc.ForeignPtr.ForeignPtr Jhc.Type.Word.Word8)
Where:   on line 333 in tmp/build/bytestring-0.9.2.0/Data/ByteString.hs
in the explicitly typed Data.ByteString.eq
  ‹Data.ByteString.1_a@(Data.ByteString.Internal.PS
                          Data.ByteString.2_p Data.ByteString.3_s
Data.ByteString.4_l)›
  ‹Data.ByteString.5_b@(Data.ByteString.Internal.PS
                          Data.ByteString.6_p' Data.ByteString.7_s'
Data.ByteString.8_l')›
  | (Jhc.Class.Ord./=) Data.ByteString.4_l Data.ByteString.8_l' =
    Jhc.Prim.Prim.False
  | (Jhc.Order.&&)
      ((Jhc.Class.Ord.==) Data.ByteString.2_p Data.ByteString.6_p')
      ((Jhc.Class.Ord.==) Data.ByteString.3_s Data.ByteString.7_s')
    = Jhc.Prim.Prim.True
  | Jhc.Order.otherwise =
    (Jhc.Class.Ord.==)
      (Data.ByteString.compareBytes Data.ByteString.1_a
         Data.ByteString.5_b)
      Jhc.Prim.Prim.EQ        {- on line 333 -}
Compilation of module: Data.ByteString)
nawal ~/000_Level_1/095_haskell_2015/jhc/jhc-0.8.2-build$



--
The best way to predict the future is to invent it. - Alan Kay
http://www.husnoo.com/



-- 
The best way to predict the future is to invent it. - Alan Kay
http://www.husnoo.com/


More information about the jhc mailing list