network-control 0.1.5 → 0.1.6
raw patch · 3 files changed
+11/−9 lines, 3 files
Files
- Changelog.md +4/−0
- Network/Control/LRUCache.hs +6/−8
- network-control.cabal +1/−1
Changelog.md view
@@ -1,5 +1,9 @@ # Revision history for network-control +## 0.1.6++* Allowing size 0.+ ## 0.1.5 * New API: `lookup'` adjusts the target priority.
Network/Control/LRUCache.hs view
@@ -46,14 +46,12 @@ :: Int -- ^ The size of 'LRUCache'. -> LRUCache k v-empty capacity- | capacity < 1 = error "LRUCache.empty: capacity < 1"- | otherwise =- LRUCache- { lcLimit = capacity- , lcTick = 0- , lcQueue = PSQ.empty- }+empty capacity =+ LRUCache+ { lcLimit = capacity+ , lcTick = 0+ , lcQueue = PSQ.empty+ } -- | Empty 'LRUCache'. /O(1)/ empty'
network-control.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: network-control-version: 0.1.5+version: 0.1.6 license: BSD-3-Clause license-file: LICENSE maintainer: kazu@iij.ad.jp