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
# Jwosty's powershell profile | |
Import-Module 'C:\tools\poshgit\dahlbyk-posh-git-9bda399\src\posh-git.psd1' | |
# Start emacs in no-window mode (CLI mode) | |
function Private:emacs() | |
{ | |
& emacs -nw $args | |
} |
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 f (x: int) = | |
let y = x / 0 | |
async { | |
return y | |
} | |
let g = async { | |
let! x = Async.Catch (f 42) | |
() | |
} |
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 System.Diagnostics | |
open System.IO | |
open System.Runtime.ExceptionServices | |
module ThirdPartyLibrary = | |
// Represents some low-level async "primitive" which is used in many many places and which may fail. This type of | |
// method/function is not typically what you're interested in when examining stacktraces. | |
// Example: a database query function from a thid-party library | |
let doWorkAsync crash = ExtraTopLevelOperators.async { |
OlderNewer