wordify-0.1.0.0

Safe HaskellSafe
LanguageHaskell2010

Wordify.Rules.Pos

Synopsis

Documentation

data Pos Source #

Instances
Eq Pos Source # 
Instance details

Defined in Wordify.Rules.Pos.Internal

Methods

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

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

Ord Pos Source # 
Instance details

Defined in Wordify.Rules.Pos.Internal

Methods

compare :: Pos -> Pos -> Ordering #

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

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

(>) :: Pos -> Pos -> Bool #

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

max :: Pos -> Pos -> Pos #

min :: Pos -> Pos -> Pos #

Show Pos Source # 
Instance details

Defined in Wordify.Rules.Pos.Internal

Methods

showsPrec :: Int -> Pos -> ShowS #

show :: Pos -> String #

showList :: [Pos] -> ShowS #

data Direction Source #

Constructors

Horizontal 
Vertical 
Instances
Eq Direction Source # 
Instance details

Defined in Wordify.Rules.Pos

above :: Pos -> Maybe Pos Source #

The position above the given position, if it exists.

below :: Pos -> Maybe Pos Source #

The position below the given position, if it exists.

left :: Pos -> Maybe Pos Source #

The position to the left of the given position, if it exists.

right :: Pos -> Maybe Pos Source #

The position to the right of the given position, if it exists.

starPos :: Pos Source #

The position of the star square