blob: d66608ba227428bd1cb297f9594dc14341c3ce8f (
plain)
1
2
3
4
5
6
7
8
9
|
{-# OPTIONS -fglasgow-exts #-}
module Foo where
import PrelGHC
import PrelNum
import PrelBase
integer2Intx :: Integer -> Int
integer2Intx (S# i) = I# i
integer2Intx (J# s d) = case (integer2Int# s d) of { n# -> I# n# }
|