Skip to content

Instantly share code, notes, and snippets.

View aph5nt's full-sized avatar

Kamil Wojciechowski aph5nt

View GitHub Profile
let something =
1 + 1
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 =
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