Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/Base/Char.fram
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ pub method lt = (extern dbl_ltInt : Char -> Char -> Bool)
pub method ge = (extern dbl_geInt : Char -> Char -> Bool)
pub method le = (extern dbl_leInt : Char -> Char -> Bool)

pub method toString = (extern dbl_chrToString : Char -> String)

pub method unescaped = (extern dbl_unescapedChrToString : Char -> String)

{## Escapes a character for inclusion in a string literal.

Additional quotes are not added around the result. ##}
pub method escape = (extern dbl_chrEscape : Char -> String)

pub method toString {?fmt : Unit} (self : Char) =
(extern dbl_chrToString : Char -> String) self
2 changes: 2 additions & 0 deletions lib/Prelude.fram
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ pub let chr {~onError : Unit ->[_] Char} (n : Int) =
else
~onError ()

pub let strListCat = (extern dbl_strListCat : List String -> String)

pub let printStrLn = extern dbl_printStrLn : String ->[IO] Unit
pub let printStr = extern dbl_printStr : String ->[IO] Unit
pub let printInt = extern dbl_printInt : Int ->[IO] Unit
Expand Down
4 changes: 2 additions & 2 deletions lib/Testing.fram
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ let testLoggerH =
Wraps test execution with required handlers.
#}
let mkTestCase
{~__file__, ~__line__, ~suitePath : Path}
{~__file__, ~__line__, ~__modulePath__, ~suitePath : Path}
(name : String)
(f : { E_TL : effect
, E_TT : effect
Expand Down Expand Up @@ -310,7 +310,7 @@ pub let testSuite

## Creates a test case.
pub let testCase
{~__file__, ~__line__, ~suitePath : Path}
{~__file__, ~__line__, ~__modulePath__, ~suitePath : Path}
name
(f : { E_TL
, E_TT
Expand Down
Loading