INLINE pragma changes in 7.2.1

Antoine Latter aslatter at gmail.com
Sat Aug 13 19:01:18 CEST 2011


Hi GHC,

Did the behavior of the INLINE prgama change in version 7.2.1? I
didn't see anything in the release notes.

Previously (7.0.3) I could attach an inline pragma to a class member like so:

class MyClass a with
  foo :: a -> Int
  {-# INLINE foo #-}

Now I get the error message:

"The INLINE pragma for default method `foo' lacks an accompanying binding"

Is this change on purpose?

Thanks,
Antoine



More information about the Glasgow-haskell-users mailing list