Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hacks that haven't found their home yet.
Synopsis
- makePhrase :: [Part] -> Text
- makeSentence :: [Part] -> Text
- squashedWWandW :: [Part] -> (Part, Person)
- appDataDir :: IO FilePath
- xM :: Int -> Int64
- xD :: Double -> Double
- minusM :: Int64
- minusM1 :: Int64
- minusM2 :: Int64
- oneM :: Int64
- tenthM :: Int64
- show64With2 :: Int64 -> Text
- workaroundOnMainThreadMVar :: MVar (IO ())
Documentation
makePhrase :: [Part] -> Text Source #
Re-exported English phrase creation functions, applied to our custom irregular word sets.
makeSentence :: [Part] -> Text Source #
Re-exported English phrase creation functions, applied to our custom irregular word sets.
squashedWWandW :: [Part] -> (Part, Person) Source #
Apply the WWandW
constructor, first representing repetitions
as CardinalWs
.
The parts are not sorted, only grouped, to keep the order.
The internal structure of speech parts is compared, not their string
rendering, so some coincidental clashes are avoided (and code is simpler).
appDataDir :: IO FilePath Source #
Personal data directory for the game. Depends on the OS and the game,
e.g., for LambdaHack under Linux it's ~/.LambdaHack/
.
show64With2 :: Int64 -> Text Source #
workaroundOnMainThreadMVar :: MVar (IO ()) Source #