mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-23 06:25:10 +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
|
||||
exposes
|
||||
[
|
||||
exposes [
|
||||
empty,
|
||||
single,
|
||||
get,
|
||||
|
@ -15,8 +14,7 @@ interface Dict
|
|||
intersection,
|
||||
difference,
|
||||
]
|
||||
imports
|
||||
[
|
||||
imports [
|
||||
Bool.{ Bool },
|
||||
]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
interface Json
|
||||
exposes
|
||||
[
|
||||
exposes [
|
||||
Json,
|
||||
format,
|
||||
]
|
||||
imports
|
||||
[
|
||||
imports [
|
||||
Encode.{
|
||||
Encoder,
|
||||
custom,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
interface List
|
||||
exposes
|
||||
[
|
||||
exposes [
|
||||
isEmpty,
|
||||
get,
|
||||
set,
|
||||
|
@ -54,8 +53,7 @@ interface List
|
|||
sortAsc,
|
||||
sortDesc,
|
||||
]
|
||||
imports
|
||||
[
|
||||
imports [
|
||||
Bool.{ Bool },
|
||||
]
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
interface Num
|
||||
exposes
|
||||
[
|
||||
exposes [
|
||||
Num,
|
||||
Int,
|
||||
Frac,
|
||||
|
@ -144,8 +143,7 @@ interface Num
|
|||
toF64,
|
||||
toF64Checked,
|
||||
]
|
||||
imports
|
||||
[
|
||||
imports [
|
||||
Bool.{ Bool },
|
||||
]
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
interface Set
|
||||
exposes
|
||||
[
|
||||
exposes [
|
||||
empty,
|
||||
single,
|
||||
walk,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue