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
exposes
[
exposes [
empty,
single,
get,
@ -15,8 +14,7 @@ interface Dict
intersection,
difference,
]
imports
[
imports [
Bool.{ Bool },
]

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,5 @@
interface Str
exposes
[
exposes [
Utf8Problem,
Utf8ByteProblem,
concat,
@ -118,8 +117,7 @@ interface Str
## 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
## scope, and it must be a name - it can't be an arbitrary expression like a function call.
Utf8ByteProblem :
[
Utf8ByteProblem : [
InvalidStartByte,
UnexpectedEndOfSequence,
ExpectedContinuation,