INLINE pragma changes in 7.2.1

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


On Sat, Aug 13, 2011 at 12:29 PM,  <wagnerdm at seas.upenn.edu> wrote:
> The behavior of the compilation part didn't change, GHC just started
> complaining about nonsense. See
> http://hackage.haskell.org/trac/ghc/ticket/5084 for more information.
>

I'll admit that only applying to default methods is a lot more
sensible that what I had been imagining. But for some reason I had
thought that what I was doing was specifically supposed to work at
some point.

Antoine

> ~d
>
> Quoting Antoine Latter <aslatter at gmail.com>:
>
>> 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
>>
>> _______________________________________________
>> Glasgow-haskell-users mailing list
>> Glasgow-haskell-users at haskell.org
>> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>>
>>
>
>
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>



More information about the Glasgow-haskell-users mailing list