module Data.Loc.Exception
  ( LocException (..)
  ) where

import Data.Loc.Internal.Prelude

data LocException
  = EmptySpan
  deriving (LocException -> LocException -> Bool
(LocException -> LocException -> Bool)
-> (LocException -> LocException -> Bool) -> Eq LocException
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LocException -> LocException -> Bool
$c/= :: LocException -> LocException -> Bool
== :: LocException -> LocException -> Bool
$c== :: LocException -> LocException -> Bool
Eq, Eq LocException
Eq LocException
-> (LocException -> LocException -> Ordering)
-> (LocException -> LocException -> Bool)
-> (LocException -> LocException -> Bool)
-> (LocException -> LocException -> Bool)
-> (LocException -> LocException -> Bool)
-> (LocException -> LocException -> LocException)
-> (LocException -> LocException -> LocException)
-> Ord LocException
LocException -> LocException -> Bool
LocException -> LocException -> Ordering
LocException -> LocException -> LocException
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: LocException -> LocException -> LocException
$cmin :: LocException -> LocException -> LocException
max :: LocException -> LocException -> LocException
$cmax :: LocException -> LocException -> LocException
>= :: LocException -> LocException -> Bool
$c>= :: LocException -> LocException -> Bool
> :: LocException -> LocException -> Bool
$c> :: LocException -> LocException -> Bool
<= :: LocException -> LocException -> Bool
$c<= :: LocException -> LocException -> Bool
< :: LocException -> LocException -> Bool
$c< :: LocException -> LocException -> Bool
compare :: LocException -> LocException -> Ordering
$ccompare :: LocException -> LocException -> Ordering
$cp1Ord :: Eq LocException
Ord)

instance Exception LocException

instance Show LocException where
  showsPrec :: Int -> LocException -> ShowS
showsPrec Int
_ LocException
EmptySpan = String -> ShowS
showString String
"empty Span"