Add the beginnings of a prompt system
Add the beginnings of a generic prompt system, with exclusive support atm for string prompts, and test it out by asking the character for their name at startup
This commit is contained in:
		
							parent
							
								
									62a2e05ef2
								
							
						
					
					
						commit
						7770ed0548
					
				
					 12 changed files with 312 additions and 96 deletions
				
			
		|  | @ -15,7 +15,10 @@ test = localOption (QuickCheckTests 20) | |||
|   $ testGroup "Xanthous.Data.EntityMap" | ||||
|   [ testBatch $ monoid @(EntityMap Int) mempty | ||||
|   , testGroup "Deduplicate" | ||||
|     [ testBatch $ monoid @(Deduplicate Int) mempty | ||||
|     [ testGroup "Semigroup laws" | ||||
|       [ testProperty "associative" $ \(a :: Deduplicate (EntityMap Int)) b c -> | ||||
|           a <> (b <> c) === (a <> b) <> c | ||||
|       ] | ||||
|     ] | ||||
|   , testGroup "Eq laws" | ||||
|     [ testProperty "reflexivity" $ \(em :: EntityMap Int) -> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue