Hi all,

For the first time, I wanted to use the special built-in inline function.
To my dismay, I can't find it anywhere! Here's a minimal example:

--8<---------

module Main where

import GHC.Prim

f x = x + 1
{-# INLINE f #-}

g h x = inline h x

main = print $ g f 1

--8<---------

$ ghc /tmp/Repro.hs
[1 of 1] Compiling Main             ( /tmp/Repro.hs, /tmp/Repro.o )

/tmp/Repro.hs:8:9:
    Not in scope: `inline'
    Perhaps you meant `unlines' (imported from Prelude)
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.1

-- Johan
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to