7strtake : Nat -> String -> String
8strtake n str = pack (take n (unpack str))
12TESTS=("prim__floatToStr 0.0"
13"prim__strToFloat \"0.0\""
14"prim__addFloat 1.0 1.0"
15"prim__subFloat 1.0 1.0"
16"prim__mulFloat 1.0 1.0"
17"prim__divFloat 1.0 1.0"
18"prim__slteFloat 1.0 1.0"
19"prim__sltFloat 1.0 1.0"
20"prim__sgteFloat 1.0 1.0"
21"prim__sgtFloat 1.0 1.0"
22"prim__eqFloat 1.0 1.0"
41main = putStrLn $ strtake 10 (show $ $2)
48 generate_testfile "tmptest.idr" "${T}"
49 idris $@ --quiet tmptest.idr -o tmptest || echo "missing primitive in ${CG}"
51 rm tmptest.idr tmptest.ibc tmptest
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