Created
July 28, 2013 13:31
-
-
Save bpatra/6098589 to your computer and use it in GitHub Desktop.
Powershell script in simpleExample.ps1 generated by FsToPs
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
Add-Type -Path <myPath>\FSharp.Compiler.CodeDom.dll | |
$provider = New-Object Microsoft.FSharp.Compiler.CodeDom.FSharpCodeProvider | |
$fsharpCode = @" | |
module dafuq | |
let x= 5 | |
"@ | |
$fsharpType = Add-Type -TypeDefinition $fsharpCode -CodeDomProvider $provider | |
[dafuq]::x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment