mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-18 01:29:47 +00:00
roc format builtins
This commit is contained in:
parent
01434c8e28
commit
7e12171b76
7 changed files with 344 additions and 357 deletions
|
@ -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 },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
interface Json
|
interface Json
|
||||||
exposes
|
exposes [
|
||||||
[
|
|
||||||
Json,
|
Json,
|
||||||
format,
|
format,
|
||||||
]
|
]
|
||||||
imports
|
imports [
|
||||||
[
|
|
||||||
Encode.{
|
Encode.{
|
||||||
Encoder,
|
Encoder,
|
||||||
custom,
|
custom,
|
||||||
|
|
|
@ -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 },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -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 },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
interface Set
|
interface Set
|
||||||
exposes
|
exposes [
|
||||||
[
|
|
||||||
empty,
|
empty,
|
||||||
single,
|
single,
|
||||||
walk,
|
walk,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue