feat[modules]: give datatypes their own file
This commit is contained in:
parent
0411e8af19
commit
9dfbb4fb1e
4 changed files with 40 additions and 15 deletions
13
src/Language/Brainfuck/Instruction/Extended/Operation.hs
Normal file
13
src/Language/Brainfuck/Instruction/Extended/Operation.hs
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
-- | This module holds the 'Operation' enum, this allows for nice qualified imports.
|
||||
--
|
||||
-- Also, it makes for smaller compilation units and easier changes, because I I just happen to know what's where.
|
||||
|
||||
module Language.Brainfuck.Instruction.Extended.Operation (Operation(..)) where
|
||||
|
||||
-- | All the Operations that are allowed on a Variable in the Extended Instruction format.
|
||||
|
||||
data Operation
|
||||
= Add
|
||||
| Subtract
|
||||
deriving (Show)
|
Loading…
Add table
Add a link
Reference in a new issue