This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let something = | |
1 + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let findOk result item = | |
result | |
|> successTee (fun (obj, msgs) -> | |
let found = msgs |> List.toSeq |> Seq.tryFind (fun(m) -> m = item) | |
match found with | |
| Some msg -> msg |> should be (sameAs item) | |
| None -> failwith(sprintf "%s not found" item) | |
) | |
let findFailure result item = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ddddddd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let compileScript(state : State) = | |
if(state.hasStartupScript = false) then Success(state, []) | |
else | |
try | |
if File.Exists(outputAssembly) then | |
File.Delete(outputAssembly) | |
let provider = new FSharpCodeProvider() | |
let params'= CompilerParameters() | |
params'.GenerateExecutable <- false |
NewerOlder