roc format builtins

This commit is contained in:
Richard Feldman 2022-07-06 14:00:40 -04:00
parent 01434c8e28
commit 7e12171b76
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
7 changed files with 344 additions and 357 deletions

View file

@ -1,6 +1,5 @@
interface Dict interface Dict
exposes exposes [
[
empty, empty,
single, single,
get, get,
@ -15,8 +14,7 @@ interface Dict
intersection, intersection,
difference, difference,
] ]
imports imports [
[
Bool.{ Bool }, Bool.{ Bool },
] ]

View file

@ -1,6 +1,5 @@
interface Encode interface Encode
exposes exposes [
[
Encoder, Encoder,
Encoding, Encoding,
toEncoder, toEncoder,
@ -28,8 +27,7 @@ interface Encode
append, append,
toBytes, toBytes,
] ]
imports imports []
[]
Encoder fmt := List U8, fmt -> List U8 | fmt has EncoderFormatting Encoder fmt := List U8, fmt -> List U8 | fmt has EncoderFormatting

View file

@ -1,11 +1,9 @@
interface Json interface Json
exposes exposes [
[
Json, Json,
format, format,
] ]
imports imports [
[
Encode.{ Encode.{
Encoder, Encoder,
custom, custom,

View file

@ -1,6 +1,5 @@
interface List interface List
exposes exposes [
[
isEmpty, isEmpty,
get, get,
set, set,
@ -54,8 +53,7 @@ interface List
sortAsc, sortAsc,
sortDesc, sortDesc,
] ]
imports imports [
[
Bool.{ Bool }, Bool.{ Bool },
] ]

View file

@ -1,6 +1,5 @@
interface Num interface Num
exposes exposes [
[
Num, Num,
Int, Int,
Frac, Frac,
@ -144,8 +143,7 @@ interface Num
toF64, toF64,
toF64Checked, toF64Checked,
] ]
imports imports [
[
Bool.{ Bool }, Bool.{ Bool },
] ]

View file

@ -1,6 +1,5 @@
interface Set interface Set
exposes exposes [
[
empty, empty,
single, single,
walk, walk,

View file

@ -1,6 +1,5 @@
interface Str interface Str
exposes exposes [
[
Utf8Problem, Utf8Problem,
Utf8ByteProblem, Utf8ByteProblem,
concat, concat,
@ -118,8 +117,7 @@ interface Str
## and you can use it as many times as you like inside a string. The name ## and you can use it as many times as you like inside a string. The name
## between the parentheses must refer to a `Str` value that is currently in ## between the parentheses must refer to a `Str` value that is currently in
## scope, and it must be a name - it can't be an arbitrary expression like a function call. ## scope, and it must be a name - it can't be an arbitrary expression like a function call.
Utf8ByteProblem : Utf8ByteProblem : [
[
InvalidStartByte, InvalidStartByte,
UnexpectedEndOfSequence, UnexpectedEndOfSequence,
ExpectedContinuation, ExpectedContinuation,