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 = ITChar | ITNative | IT8 | IT16 | IT32 | IT64 | IT8x16 | IT16x8 | IT32x4 | IT64x2
49FBits8x16 = FIntT IT8x16
52FBits16x8 = FIntT IT16x8
55FBits32x4 = FIntT IT32x4
58FBits64x2 = FIntT IT64x2
60interpFTy : FTy -> Type
61interpFTy (FIntT ITNative) = Int
62interpFTy (FIntT ITChar) = Char
63interpFTy (FIntT IT8) = Bits8
64interpFTy (FIntT IT16) = Bits16
65interpFTy (FIntT IT32) = Bits32
66interpFTy (FIntT IT64) = Bits64
68interpFTy FFloat = Float
69interpFTy FString = String
71interpFTy (FIntT IT8x16) = Bits8x16
72interpFTy (FIntT IT16x8) = Bits16x8
73interpFTy (FIntT IT32x4) = Bits32x4
74interpFTy (FIntT IT64x2) = Bits64x2
77interpFTy (FFunction a b) = interpFTy a -> interpFTy b
79ForeignTy : (xs:List FTy) -> (t:FTy) -> Type
80ForeignTy Nil rt = IO (interpFTy rt)
81ForeignTy (t::ts) rt = interpFTy t -> ForeignTy ts rt
84data Foreign : Type -> Type where
85 FFun : String -> (xs:List FTy) -> (t:FTy) ->
86 Foreign (ForeignTy xs t)
88mkForeign : Foreign x -> x
89mkLazyForeign : Foreign x -> x
90-- mkForeign and mkLazyForeign compiled as primitives
92fork : |(thread:IO ()) -> IO Ptr
93fork 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