Where has the special built-in inline function gone?
Johan Tibell
johan.tibell at gmail.com
Tue Nov 13 18:34:06 CET 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20121113/fb832318/attachment.htm>
More information about the Glasgow-haskell-users
mailing list