1
1
mirror of https://github.com/github/semantic.git synced 2024-11-23 16:37:50 +03:00
This commit is contained in:
Patrick Thomson 2019-12-05 17:12:21 -05:00
parent 91d0d8e019
commit 16aa229442

View File

@ -1,6 +1,6 @@
{-# LANGUAGE DeriveFoldable, DeriveFunctor, DeriveGeneric, DeriveTraversable, ExistentialQuantification,
FlexibleContexts, KindSignatures, LambdaCase, MultiParamTypeClasses, QuantifiedConstraints, RankNTypes,
StandaloneDeriving, TypeOperators #-}
{-# LANGUAGE DeriveFoldable, DeriveFunctor, DeriveTraversable, ExistentialQuantification, FlexibleContexts,
KindSignatures, LambdaCase, MultiParamTypeClasses, QuantifiedConstraints, RankNTypes, StandaloneDeriving,
TypeOperators #-}
module Language.Python.Failure
( Failure (..)
@ -42,7 +42,7 @@ instance RightModule Failure where
a >>=* _ = coerce a
unimplemented :: (Show ast, Member Failure sig, Carrier sig m) => ast -> m a
unimplemented x = send . Unimplemented $ x
unimplemented = send . Unimplemented
invariantViolated :: (Member Failure sig, Carrier sig m) => String -> m a
invariantViolated = send . InvariantViolated