formatting

This commit is contained in:
Rowan Torbitzky-Lane 2025-02-13 23:34:00 -06:00
parent 915ec947f5
commit ed960acef3
4 changed files with 38 additions and 38 deletions

View File

@ -1,11 +1,11 @@
module HushGP.Genome where module HushGP.Genome where
import HushGP.State
import HushGP.Utility
import Data.Map qualified as Map
import Data.List import Data.List
import Data.List.Split import Data.List.Split
import Data.Map qualified as Map
import HushGP.Instructions.Opens import HushGP.Instructions.Opens
import HushGP.State
import HushGP.Utility
-- | Makes a random plushy from variables in a passed argMap and -- | Makes a random plushy from variables in a passed argMap and
-- a passed list of instructions. -- a passed list of instructions.

View File

@ -1,9 +1,9 @@
module HushGP.PushTests module HushGP.PushTests where
-- ( module HushGP.PushTests.GenericTests, -- ( module HushGP.PushTests.GenericTests,
-- module HushGP.PushTests.IntTests, -- module HushGP.PushTests.IntTests,
-- module HushGP.PushTests.UtilTests, -- module HushGP.PushTests.UtilTests,
-- ) -- )
where
-- import HushGP.PushTests.GenericTests -- import HushGP.PushTests.GenericTests
-- import HushGP.PushTests.IntTests -- import HushGP.PushTests.IntTests

View File

@ -21,8 +21,8 @@ data Gene
| GeneVectorBool [Bool] | GeneVectorBool [Bool]
| GeneVectorString [String] | GeneVectorString [String]
| GeneVectorChar [Char] | GeneVectorChar [Char]
-- |State -> State is the function itself. String stores the name of the function. | -- | State -> State is the function itself. String stores the name of the function.
| StateFunc (State -> State, String) StateFunc (State -> State, String)
| PlaceInput String | PlaceInput String
| Close | Close
| Open Int | Open Int

View File

@ -1,8 +1,8 @@
module HushGP.Utility where module HushGP.Utility where
import Control.Monad
import HushGP.State import HushGP.State
import System.Random import System.Random
import Control.Monad
-- | Generates a single random instruction from a list of instructions. -- | Generates a single random instruction from a list of instructions.
randomInstruction :: [Gene] -> IO Gene randomInstruction :: [Gene] -> IO Gene