mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-14 22:21:10 +00:00
15 lines
392 B
Agda
15 lines
392 B
Agda
|
module FFI.Data.HaskellInt where
|
||
|
|
||
|
open import Agda.Builtin.Int using (Int)
|
||
|
|
||
|
{-# FOREIGN GHC import qualified Data.Int #-}
|
||
|
|
||
|
postulate HaskellInt : Set
|
||
|
{-# COMPILE GHC HaskellInt = type Data.Int.Int #-}
|
||
|
|
||
|
postulate
|
||
|
intToHaskellInt : Int → HaskellInt
|
||
|
haskellIntToInt : HaskellInt → Int
|
||
|
{-# COMPILE GHC intToHaskellInt = fromIntegral #-}
|
||
|
{-# COMPILE GHC haskellIntToInt = fromIntegral #-}
|