Given the following trivial program

    data F = F !Int deriving (Eq)
    main = return ()

GHC 4.04 (patchlevel 1) on an x86 running Linux compiles fine.
But if I use the "-funbox-strict-fields" flag, then I get the
following error message

  bug.hs:1:
      Couldn't match `Int#' against `Int'
          Expected type: Int#
          Inferred type: Int
      In the first argument of `==#', namely `a1'
      In the right-hand side of an equation for `==': (a1 ==# b1)

Chris


Reply via email to