Jikka-5.0.11.1: A transpiler from Python to C++ for competitive programming
Safe HaskellSafe-Inferred
LanguageHaskell2010

Jikka.Common.Location

Synopsis

Documentation

data Loc Source #

Loc represents a location of something in the users' source code. line and column is 1-based.

Constructors

Loc 

Fields

Instances

Instances details
Eq Loc Source # 
Instance details

Defined in Jikka.Common.Location

Methods

(==) :: Loc -> Loc -> Bool #

(/=) :: Loc -> Loc -> Bool #

Ord Loc Source # 
Instance details

Defined in Jikka.Common.Location

Methods

compare :: Loc -> Loc -> Ordering #

(<) :: Loc -> Loc -> Bool #

(<=) :: Loc -> Loc -> Bool #

(>) :: Loc -> Loc -> Bool #

(>=) :: Loc -> Loc -> Bool #

max :: Loc -> Loc -> Loc #

min :: Loc -> Loc -> Loc #

Read Loc Source # 
Instance details

Defined in Jikka.Common.Location

Show Loc Source # 
Instance details

Defined in Jikka.Common.Location

Methods

showsPrec :: Int -> Loc -> ShowS #

show :: Loc -> String #

showList :: [Loc] -> ShowS #

data WithLoc a Source #

Constructors

WithLoc 

Fields

Instances

Instances details
Functor WithLoc Source # 
Instance details

Defined in Jikka.Common.Location

Methods

fmap :: (a -> b) -> WithLoc a -> WithLoc b #

(<$) :: a -> WithLoc b -> WithLoc a #

Eq a => Eq (WithLoc a) Source # 
Instance details

Defined in Jikka.Common.Location

Methods

(==) :: WithLoc a -> WithLoc a -> Bool #

(/=) :: WithLoc a -> WithLoc a -> Bool #

Ord a => Ord (WithLoc a) Source # 
Instance details

Defined in Jikka.Common.Location

Methods

compare :: WithLoc a -> WithLoc a -> Ordering #

(<) :: WithLoc a -> WithLoc a -> Bool #

(<=) :: WithLoc a -> WithLoc a -> Bool #

(>) :: WithLoc a -> WithLoc a -> Bool #

(>=) :: WithLoc a -> WithLoc a -> Bool #

max :: WithLoc a -> WithLoc a -> WithLoc a #

min :: WithLoc a -> WithLoc a -> WithLoc a #

Read a => Read (WithLoc a) Source # 
Instance details

Defined in Jikka.Common.Location

Show a => Show (WithLoc a) Source # 
Instance details

Defined in Jikka.Common.Location

Methods

showsPrec :: Int -> WithLoc a -> ShowS #

show :: WithLoc a -> String #

showList :: [WithLoc a] -> ShowS #

data WithLoc' a Source #

Constructors

WithLoc' 

Fields

Instances

Instances details
Functor WithLoc' Source # 
Instance details

Defined in Jikka.Common.Location

Methods

fmap :: (a -> b) -> WithLoc' a -> WithLoc' b #

(<$) :: a -> WithLoc' b -> WithLoc' a #

Eq a => Eq (WithLoc' a) Source # 
Instance details

Defined in Jikka.Common.Location

Methods

(==) :: WithLoc' a -> WithLoc' a -> Bool #

(/=) :: WithLoc' a -> WithLoc' a -> Bool #

Ord a => Ord (WithLoc' a) Source # 
Instance details

Defined in Jikka.Common.Location

Methods

compare :: WithLoc' a -> WithLoc' a -> Ordering #

(<) :: WithLoc' a -> WithLoc' a -> Bool #

(<=) :: WithLoc' a -> WithLoc' a -> Bool #

(>) :: WithLoc' a -> WithLoc' a -> Bool #

(>=) :: WithLoc' a -> WithLoc' a -> Bool #

max :: WithLoc' a -> WithLoc' a -> WithLoc' a #

min :: WithLoc' a -> WithLoc' a -> WithLoc' a #

Read a => Read (WithLoc' a) Source # 
Instance details

Defined in Jikka.Common.Location

Show a => Show (WithLoc' a) Source # 
Instance details

Defined in Jikka.Common.Location

Methods

showsPrec :: Int -> WithLoc' a -> ShowS #

show :: WithLoc' a -> String #

showList :: [WithLoc' a] -> ShowS #

IsString a => IsString (WithLoc' a) Source # 
Instance details

Defined in Jikka.Common.Location

Methods

fromString :: String -> WithLoc' a #