5abstract data IO a = prim__IO a
8io_bind : IO a -> (a -> IO b) -> IO b
9io_bind (prim__IO v) k = k v
11unsafePerformIO : IO a -> a
12-- compiled as primitive
16io_return x = prim__IO x
18-- This may seem pointless, but we can use it to force an
19-- evaluation of main that Epic wouldn't otherwise do...
21run__IO : IO () -> IO ()
22run__IO v = io_bind v (\v' => io_return v')
24data IntTy = ITNative | IT8 | IT16 | IT32 | IT64
25data FTy = FIntT IntTy | FFloat | FString | FPtr | FAny Type | FUnit
39interpFTy : FTy -> Type
40interpFTy (FIntT ITNative) = Int
41interpFTy (FIntT IT8) = Bits8
42interpFTy (FIntT IT16) = Bits16
43interpFTy (FIntT IT32) = Bits32
44interpFTy (FIntT IT64) = Bits64
45interpFTy FFloat = Float
46interpFTy FString = String
51ForeignTy : (xs:List FTy) -> (t:FTy) -> Type
52ForeignTy Nil rt = IO (interpFTy rt)
53ForeignTy (t::ts) rt = interpFTy t -> ForeignTy ts rt
56data Foreign : Type -> Type where
57 FFun : String -> (xs:List FTy) -> (t:FTy) ->
58 Foreign (ForeignTy xs t)
60mkForeign : Foreign x -> x
61mkLazyForeign : Foreign x -> x
62-- mkForeign and mkLazyForeign compiled as primitives
64fork : |(thread:IO ()) -> IO Ptr
65fork x = io_return prim__vm -- compiled specially
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list