mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 22:35:43 +08:00
5187e64f88
* First cut interpreter
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 #-}
|