Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
- notF :: Functor f => f Bool -> f Bool
- (<&&>) :: Applicative f => f Bool -> f Bool -> f Bool
- (<||>) :: Applicative f => f Bool -> f Bool -> f Bool
- untick :: (Functor n, MonadFree (UI n) m) => Free (UI n) a -> m (Either (Free (UI n) a) a)
- untickInfinite :: (Functor n, MonadFree (UI n) m) => Free (UI n) Void -> m (Free (UI n) Void)
- randomness :: (Random r, MonadFree (UI n) m) => (r, r) -> m r
- degrees :: Float -> Float
- radians :: Float -> Float
- unitV2 :: Floating a => a -> V2 a
- angleV2 :: RealFloat a => V2 a -> a
- sinCos :: Floating a => a -> V2 a
- loadPictureFromFile :: (Picture2D p, MonadFree (UI n) m) => FilePath -> m (p ())
- loadBitmaps :: FilePath -> Q [Dec]
- loadBitmapsWith :: Name -> FilePath -> Q [Dec]
Combinators
Controlling
untick :: (Functor n, MonadFree (UI n) m) => Free (UI n) a -> m (Either (Free (UI n) a) a)Source
Extract the next frame of the action.
untickInfinite :: (Functor n, MonadFree (UI n) m) => Free (UI n) Void -> m (Free (UI n) Void)Source
An infinite version of untick
.
Random
randomness :: (Random r, MonadFree (UI n) m) => (r, r) -> m rSource
Get a given range of value.
Helper
sinCos :: Floating a => a -> V2 aSource
Deprecated: Use unitV2 instead
Deprecated synonym for unitV2
.
Loading
loadPictureFromFile :: (Picture2D p, MonadFree (UI n) m) => FilePath -> m (p ())Source
Create a Picture
from the given file.
loadBitmaps :: FilePath -> Q [Dec]Source
use with getDataFileName