This file contains hidden or 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 withdrawWithAudit = withdraw |> auditAs "withdraw" Auditing.fileSystem | |
| let depositWithAudit = deposit |> auditAs "deposit" Auditing.fileSystem | |
| while true do | |
| let action = | |
| Console.WriteLine() | |
| printfn "Current balance is £%M" account.Balance | |
| Console.Write "(d)eposit, (w)ithdraw or e(x)it: " | |
| Console.ReadLine() |
This file contains hidden or 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
| Copyright (c) 2017 Paul Chapman | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all |
This file contains hidden or 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
| @echo off | |
| "FAKE\tools\Fake.exe" "%1" | |
| exit /b %errorlevel% |
This file contains hidden or 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
| open System | |
| open FSharpx.Undo | |
| module Sample = | |
| let rec handleInput<'a> = undoable { | |
| match Console.ReadLine() with | |
| | "undo" -> | |
| let! _ = undo | |
| () | |
| | input -> |
This file contains hidden or 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
| using System; | |
| namespace Aperea.iCalendar | |
| { | |
| public class Calendar | |
| { | |
| public void SetTime(DateTime dateTime) | |
| { | |
| } |
This file contains hidden or 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
| using System; | |
| namespace Aperea.iCalendar | |
| { | |
| public class Calendar | |
| { | |
| public void SetTime(DateTime dateTime) | |
| { | |
| } |
This file contains hidden or 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
| module Server | |
| type StartParams = | |
| { TimeOut: int; | |
| Url: string; } | |
| let startServer serverName startParams = | |
| printfn "%s %d" serverName startParams.TimeOut |
This file contains hidden or 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
| type OptionBuilder() = | |
| member b.Delay(f) = f() | |
| member b.Return(x) = | |
| match x with | |
| | None -> None | |
| | Some r -> Some(r) | |
| member b.Bind(p,rest) = |