Skip to content

Instantly share code, notes, and snippets.

{-# LANGUAGE LambdaCase #-}
module Collapse where
-- base
import Data.Functor ((<&>))
import Data.Functor.Classes (Show1)
import Data.Foldable (toList)
import Control.Monad (ap)
@LSLeary
LSLeary / Graded.hs
Last active November 8, 2024 04:36 — forked from axman6/Tracked Exceptions.hs
Checked exceptions implemented by grading IO with the set of exceptions an action may throw.
{-# LANGUAGE DataKinds, TypeFamilies, UndecidableInstances, RoleAnnotations
, QuantifiedConstraints, RebindableSyntax, BlockArguments
, RequiredTypeArguments
#-}
module Graded (
GradedAppl(..), (<*>), (<*), (*>),
GradedAlt(..),
GradedMonad(..), (>>),