1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-04 17:07:28 +03:00
juvix/tests/positive/issue1731/builtinFail.juvix
Łukasz Czajka 83539148cb
Update standard library coding style according to the guidelines (#3092)
* Closes #3079
* Closes #3086
* Depends on #3088 
* Updates the coding style guidelines (CODING.md) to reflect issues not
foreseen originally
* Changes the unicode arrow printed in the REPL to `->`. This is to make
the output consistent with how function types are written in the
standard library.

---------

Co-authored-by: Paul Cadman <git@paulcadman.dev>
2024-10-14 15:56:54 +02:00

10 lines
218 B
Plaintext

module builtinFail;
import Stdlib.Data.String open;
import Stdlib.System.IO open;
builtin fail
axiom fail : {A : Type} → String → A;
main : IO := printStringLn "Get" >>> fail "Enough" >>> printStringLn "Sleep";