summaryrefslogtreecommitdiff
path: root/lib/Postdelay/PrioMap.hs
diff options
context:
space:
mode:
authorGregor Kleen <aethoago@141.li>2017-02-20 20:53:15 +0100
committerGregor Kleen <aethoago@141.li>2017-02-20 20:53:15 +0100
commit0769cc7c46f4aeb3dd1416a62c0d68648ae5f782 (patch)
treef13312b30c3ccc5c6c97a28dfca5d3225408ee5b /lib/Postdelay/PrioMap.hs
parentee87f8d3ecc2d23584e378bfd3160ba6f49ebf4a (diff)
downloadpostdelay-0769cc7c46f4aeb3dd1416a62c0d68648ae5f782.tar
postdelay-0769cc7c46f4aeb3dd1416a62c0d68648ae5f782.tar.gz
postdelay-0769cc7c46f4aeb3dd1416a62c0d68648ae5f782.tar.bz2
postdelay-0769cc7c46f4aeb3dd1416a62c0d68648ae5f782.tar.xz
postdelay-0769cc7c46f4aeb3dd1416a62c0d68648ae5f782.zip
Minor cleanup
Diffstat (limited to 'lib/Postdelay/PrioMap.hs')
-rw-r--r--lib/Postdelay/PrioMap.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Postdelay/PrioMap.hs b/lib/Postdelay/PrioMap.hs
index 2b75984..97705ba 100644
--- a/lib/Postdelay/PrioMap.hs
+++ b/lib/Postdelay/PrioMap.hs
@@ -2,7 +2,7 @@
2 2
3module Postdelay.PrioMap 3module Postdelay.PrioMap
4 ( PrioMap, prioMap, prioMap', _Endo 4 ( PrioMap, prioMap, prioMap', _Endo
5 , prio, prios 5 , prio, prio', prios
6 , squash 6 , squash
7 7
8 , PrioEndo, prioEndo, prioEndo' 8 , PrioEndo, prioEndo, prioEndo'
@@ -68,3 +68,6 @@ prioEndo = prioMap
68 68
69prioEndo' :: Enum p => p -> Iso' (PrioEndo p a) (Endo a) 69prioEndo' :: Enum p => p -> Iso' (PrioEndo p a) (Endo a)
70prioEndo' = prioMap' 70prioEndo' = prioMap'
71
72prio' :: Enum p => p -> Setter' (PrioEndo p a) a
73prio' p = sets $ \(Endo -> mod) -> mappend $ review (prioMap' p) mod