5string_from_c : Ptr -> IO String
6string_from_c str = foreign FFI_C "make_string_2" (Ptr -> IO String) str
8connection_information_struct : Composite
9connection_information_struct = STRUCT [I8, PTR, PTR, PTR, I32]
11send_page : (conn : Ptr) -> (text : String) -> (code : Int) -> IO Int
12send_page conn page code = pure (the Int 1)
14-- Error here was using the error from the 'do' block without 'Delay' applied,
15-- which ended up looking very strange... elaborator should take the first
16-- error (from the delayed block) when elaborating arguments which may or may
18answer_to_connection : Ptr -> Ptr -> IO Int
19answer_to_connection conn conn_info = do
20 code_fld <- pure $ (connection_information_struct#4) conn_info
21 code <- peek I32 code_fld
22 answer_fld <- pure $ (connection_information_struct#1) conn_info
23 answer <- peek PTR answer_fld
24 if answer /= null then do
25 str <- string_from_c answer
26 send_page conn str code -- (prim__zextB32_Int code)
28 send_page conn str (prim__zextB32_Int code)
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