Skip to content

Commit

Permalink
Define a Throw carrier around a function.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix committed Oct 19, 2020
1 parent 07d94da commit 810d2af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Facet/Carrier/Throw/Inject.hs
@@ -1,2 +1,7 @@
module Facet.Carrier.Throw.Inject
() where
( ThrowC(..)
) where

import Control.Carrier.Reader

newtype ThrowC e f m a = ThrowC (ReaderC (f -> e) m a)

0 comments on commit 810d2af

Please sign in to comment.