Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Freya.Core/Prelude.fs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ module Option =
let mapLens (l: Lens<'a,'b>) : Prism<'a option,'b> =
Option.map (fst l), snd l >> Option.map

let bindLens (p : Lens<'a, 'b option>) : Lens<'a option, 'b option> =
Option.bind (fst p), snd p >> Option.map

// Constants

/// Literal constants for the values of keys within the OWIN environment,
Expand Down Expand Up @@ -309,4 +312,4 @@ module Constants =
let [<Literal>] ClientCloseStatus = "websocket.ClientCloseStatus"

[<CompiledName ("ClientCloseDescription")>]
let [<Literal>] ClientCloseDescription = "websocket.ClientCloseDescription"
let [<Literal>] ClientCloseDescription = "websocket.ClientCloseDescription"