music-score-1.9.0: Musical score and part representation.

Copyright(c) Hans Hoglund 2012-2014
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Time.Internal.Util

Description

 

Synopsis

Documentation

showRatio :: (Integral a, Show a) => Ratio a -> String Source

Nicer printing of ratio as ordinary fractions. > category: Math > depends: base

list :: r -> ([a] -> r) -> [a] -> r Source

Case matching on lists. > category: List > depends: base

single :: Prism' [a] a Source

inspecting :: Eq a => (b -> a) -> b -> b -> Bool Source

inspectingBy :: (b -> a) -> (a -> a -> Bool) -> b -> b -> Bool Source

withPrevNext :: [a] -> [(Maybe a, a, Maybe a)] Source

rotate :: Int -> [a] -> [a] Source

Rotate a list.

rotate n xs == id iff (n `mod` length xs) == 0
rotate (-n) . rotate n == id

tripped :: Iso ((a, b), c) ((d, e), f) (a, b, c) (d, e, f) Source

through :: Applicative f => Lens' s a -> Lens s t a b -> Lens (f s) (f t) (f a) (f b) Source

uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d Source

partial :: (a -> Bool) -> a -> Maybe a

partial2 :: (a -> b -> Bool) -> a -> b -> Maybe b Source

partial3 :: (a -> b -> c -> Bool) -> a -> b -> c -> Maybe c Source

_zipList :: Iso [a] [b] (ZipList a) (ZipList b) Source

dependingOn :: Lens s t (x, a) (x, b) -> (x -> Lens a b c d) -> Lens s t c d Source