gcodehs-0.1.2.0: GCode processor

Safe HaskellNone
LanguageHaskell2010

Data.GCode.Line

Synopsis

Documentation

data Line Source #

Constructors

Line 

Fields

Instances
Eq Line Source # 
Instance details

Defined in Data.GCode.Line

Methods

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

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

Ord Line Source # 
Instance details

Defined in Data.GCode.Line

Methods

compare :: Line -> Line -> Ordering #

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

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

(>) :: Line -> Line -> Bool #

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

max :: Line -> Line -> Line #

min :: Line -> Line -> Line #

Show Line Source # 
Instance details

Defined in Data.GCode.Line

Methods

showsPrec :: Int -> Line -> ShowS #

show :: Line -> String #

showList :: [Line] -> ShowS #

data LineType Source #

Constructors

LineTraverse

Travel move

LineDrawing

Machining/drawing move

LineJump

Produced by set coordinates SetCoords

Instances
Eq LineType Source # 
Instance details

Defined in Data.GCode.Line

Ord LineType Source # 
Instance details

Defined in Data.GCode.Line

Show LineType Source # 
Instance details

Defined in Data.GCode.Line

toLines :: CanonState -> CanonState -> Canon -> [Line] Source #

Given two states of Canon interpreter output Line or empty list if no line is produced by this Canon.

prettyLine :: Style -> Line -> String Source #

Pretty print Line