Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
StachuDotNet committed Apr 12, 2024
1 parent 9d95629 commit 978d99d
Show file tree
Hide file tree
Showing 94 changed files with 5,097 additions and 4,565 deletions.
15 changes: 15 additions & 0 deletions backend/fsdark.sln
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "BuiltinCliHost", "src\Built
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "LibTreeSitter", "src\LibTreeSitter\LibTreeSitter.fsproj", "{625B113A-D5DC-40A5-B833-4BA342AB4936}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "BuiltinPackagesOnDisk", "src\BuiltinPackagesOnDisk\BuiltinPackagesOnDisk.fsproj", "{D826D495-2AFF-4895-B216-5E8A1344609E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -377,6 +379,18 @@ Global
{625B113A-D5DC-40A5-B833-4BA342AB4936}.Release|x64.Build.0 = Release|Any CPU
{625B113A-D5DC-40A5-B833-4BA342AB4936}.Release|x86.ActiveCfg = Release|Any CPU
{625B113A-D5DC-40A5-B833-4BA342AB4936}.Release|x86.Build.0 = Release|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Debug|x64.ActiveCfg = Debug|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Debug|x64.Build.0 = Debug|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Debug|x86.ActiveCfg = Debug|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Debug|x86.Build.0 = Debug|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Release|Any CPU.Build.0 = Release|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Release|x64.ActiveCfg = Release|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Release|x64.Build.0 = Release|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Release|x86.ActiveCfg = Release|Any CPU
{D826D495-2AFF-4895-B216-5E8A1344609E}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{B56110F0-2D27-4718-8C80-E7FDE3439A63} = {F84DCF8A-FC1A-4677-AF4D-616AD7DB3470}
Expand All @@ -402,5 +416,6 @@ Global
{A74049E0-AD31-407B-9918-6A6A76C945C9} = {F84DCF8A-FC1A-4677-AF4D-616AD7DB3470}
{B199C1DE-48A2-47B4-9672-BCCB7E4F8C78} = {F84DCF8A-FC1A-4677-AF4D-616AD7DB3470}
{625B113A-D5DC-40A5-B833-4BA342AB4936} = {F84DCF8A-FC1A-4677-AF4D-616AD7DB3470}
{D826D495-2AFF-4895-B216-5E8A1344609E} = {F84DCF8A-FC1A-4677-AF4D-616AD7DB3470}
EndGlobalSection
EndGlobal
3 changes: 1 addition & 2 deletions backend/src/BuiltinCli/Libs/Directory.fs
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]


let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCli/Libs/Environment.fs
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCli/Libs/Execution.fs
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]

let constants : List<BuiltInConstant> = []
let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCli/Libs/File.fs
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCli/Libs/LanguageServerProtocol.fs
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ let fns : List<BuiltInFn> =
*)


let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCli/Libs/Output.fs
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ let fns : List<BuiltInFn> =
]


let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCli/Libs/Stdin.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCli/Libs/Time.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents : Builtin.Contents = (fns, constants)
let contents : Builtins = Builtin.fromContents constants fns
3 changes: 3 additions & 0 deletions backend/src/BuiltinCliHost/BuiltinCliHost.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
<ProjectReference Include="../Prelude/Prelude.fsproj" />
<ProjectReference Include="../LibExecution/LibExecution.fsproj" />
<ProjectReference Include="../LibParser/LibParser.fsproj" />

<ProjectReference Include="../BuiltinExecution/BuiltinExecution.fsproj" />
<ProjectReference Include="../BuiltinCli/BuiltinCli.fsproj" />
<ProjectReference Include="../BuiltinPackagesOnDisk/BuiltinPackagesOnDisk.fsproj" />

<ProjectReference Include="../LibPackageManager/LibPackageManager.fsproj" />
</ItemGroup>
<Import Project="..\..\.paket\Paket.Restore.targets" />
Expand Down
15 changes: 7 additions & 8 deletions backend/src/BuiltinCliHost/Libs/Cli.fs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ module CliRuntimeError =
let libExecutionContents =
BuiltinExecution.Builtin.contents BuiltinExecution.Libs.HttpClient.defaultConfig

let builtIns : RT.BuiltIns =
let (fns, constants) =
LibExecution.Builtin.combine
[ libExecutionContents; BuiltinCli.Builtin.contents ]
[]
{ fns = fns |> Map.fromListBy _.name
constants = constants |> Map.fromListBy _.name }
let builtIns : RT.Builtins =
LibExecution.Builtin.combine
[ libExecutionContents
BuiltinCli.Builtin.contents
BuiltinPackagesOnDisk.Builtin.contents ]
[]

// TODO: de-dupe with _other_ Cli.fs
let packageManagerBaseUrl =
Expand Down Expand Up @@ -456,4 +455,4 @@ let fns : List<BuiltInFn> =
]

let constants : List<BuiltInConstant> = []
let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCloudExecution/Libs/DB.fs
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinCloudExecution/Libs/Event.fs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
6 changes: 4 additions & 2 deletions backend/src/BuiltinDarkInternal/Builtin.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ let contents =
Libs.Users.contents
Libs.Workers.contents ]
fnRenames
|> (fun (fns, constants) ->
(fns |> List.map (fun f -> { f with fn = internalFn f.fn }), constants))

|> fun builtins ->
{ builtins with
fns = Map.map (fun fn -> { fn with fn = internalFn fn.fn }) builtins.fns }
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/Canvases.fs
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/DBs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/Domains.fs
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/F404s.fs
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ let fns : List<BuiltInFn> = []
// previewable = Impure
// deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/Infra.fs
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ human-readable data."
deprecated = NotDeprecated } ]

let constants : List<BuiltInConstant> = []
let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/Secrets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/Users.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinDarkInternal/Libs/Workers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]

let constants : List<BuiltInConstant> = []
let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Builtin.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let fnRenames =
// eg: fn "Http" "respond" 0, fn "Http" "response" 0
[]

let contents (httpConfig : Libs.HttpClient.Configuration) : Builtin.Contents =
let contents (httpConfig : Libs.HttpClient.Configuration) : Builtins =
Builtin.combine
[ Libs.Bool.contents
Libs.Base64.contents
Expand Down
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/AltJson.fs
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
4 changes: 1 addition & 3 deletions backend/src/BuiltinExecution/Libs/Base64.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ module Dval = LibExecution.Dval

let constants : List<BuiltInConstant> = []



let fns : List<BuiltInFn> =
[ { name = fn "base64Decode" 0
typeParams = []
Expand Down Expand Up @@ -102,4 +100,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Bool.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Bytes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Char.fs
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Crypto.fs
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ let fns : List<BuiltInFn> =
previewable = ImpurePreviewable
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/DateTime.fs
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Dict.fs
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Float.fs
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/HttpClient.fs
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,4 @@ let fns (config : Configuration) : List<BuiltInFn> =

let constants : List<BuiltInConstant> = []

let contents config = (fns config, constants)
let contents config : Builtins = Builtin.fromContents constants (fns config)
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Int128.fs
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Int16.fs
Original file line number Diff line number Diff line change
Expand Up @@ -567,4 +567,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Int32.fs
Original file line number Diff line number Diff line change
Expand Up @@ -521,4 +521,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Int64.fs
Original file line number Diff line number Diff line change
Expand Up @@ -576,4 +576,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Int8.fs
Original file line number Diff line number Diff line change
Expand Up @@ -576,4 +576,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Json.fs
Original file line number Diff line number Diff line change
Expand Up @@ -861,4 +861,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/LanguageTools.fs
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/List.fs
Original file line number Diff line number Diff line change
Expand Up @@ -699,4 +699,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Math.fs
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/NoModule.fs
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,4 @@ let fns : List<BuiltInFn> =
deprecated = NotDeprecated } ]


let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Parser.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/String.fs
Original file line number Diff line number Diff line change
Expand Up @@ -485,4 +485,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/UInt128.fs
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/UInt16.fs
Original file line number Diff line number Diff line change
Expand Up @@ -520,4 +520,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/UInt32.fs
Original file line number Diff line number Diff line change
Expand Up @@ -513,4 +513,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/UInt64.fs
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,4 @@ let fns : List<BuiltInFn> =
previewable = Pure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/UInt8.fs
Original file line number Diff line number Diff line change
Expand Up @@ -506,4 +506,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/Uuid.fs
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ let fns : List<BuiltInFn> =

]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
2 changes: 1 addition & 1 deletion backend/src/BuiltinExecution/Libs/X509.fs
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ let fns : List<BuiltInFn> =
previewable = Impure
deprecated = NotDeprecated } ]

let contents = (fns, constants)
let contents : Builtins = LibExecution.Builtin.fromContents constants fns
10 changes: 10 additions & 0 deletions backend/src/BuiltinPackagesOnDisk/Builtin.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module BuiltinPackagesOnDisk.Builtin

module Builtin = LibExecution.Builtin

let fnRenames : Builtin.FnRenames =
// old names, new names
// eg: fn "Http" "respond" 0, fn "Http" "response" 0
[]

let contents = Builtin.combine [ Libs.Packages.contents ] fnRenames
Loading

0 comments on commit 978d99d

Please sign in to comment.