Skip to content

Misleading error for id with INLINEABLE and NOINLINE pragma.

{-# INLINEABLE bar #-}
{-# NOINLINE bar #-}
bar = 1 + 2
Test.hs:7:14: error:
    Duplicate NOINLINE pragmas for ‘bar’
    at Test.hs:6:16-18
       Test.hs:7:14-16
  |
7 | {-# NOINLINE bar #-}

Ideally it would say something like:

Test.hs:7:14: error:
    Invalid pragma combination for ‘bar’
    at Test.hs:6:16-18
       Test.hs:7:14-16
  |
6 | {-# INLINEABLE bar #-}
7 | {-# NOINLINE bar #-}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information