Copyright | (c) 2021 Composewell Technologies |
---|---|
License | BSD-3-Clause |
Maintainer | streamly@composewell.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Ring a = Ring {}
- createRing :: MonadIO m => Int -> m (Ring a)
- writeLastN :: MonadIO m => Int -> Fold m a (Ring a)
- seek :: MonadIO m => Int -> Ring a -> m (Ring a)
- unsafeInsertRingWith :: Ring a -> a -> IO Int
- toMutArray :: MonadIO m => Int -> Int -> Ring a -> m (MutArray a)
- toStreamWith :: Int -> Ring a -> Stream m a
Documentation
Generation
Modification
seek :: MonadIO m => Int -> Ring a -> m (Ring a) Source #
Move the ring head clockwise (+ve adj) or counter clockwise (-ve adj) by the given amount.