name: first-and-last version: 0.1.0.1 synopsis: First and Last generalized to return up to n values description: This library provides data types @@ and @@ generalizing @First@ and @Last@ from @@ to return up to @n@ values. . >>> getFirst' (foldMap pure [1,2,3,4] :: First' 2 Int) [1,2] . >>> getLast' (foldMap pure [1,2,3,4] :: Last' 2 Int) [3,4] . It also provides API-compatible type synonyms @@ and @@ as well as functions @@ and @@, allowing you to use it as a drop-in replacement. homepage: https://github.com/markandrus/first-and-last license: BSD3 license-file: LICENSE author: Mark Andrus Roberts maintainer: markandrusroberts@gmail.com copyright: Copyright (C) 2015 Mark Andrus Roberts category: Data build-type: Simple cabal-version: >=1.10 source-repository head type: git location: https://github.com/markandrus/first-and-last library exposed-modules: Data.Monoid.First, Data.Monoid.Last build-depends: base >=4.8 && <4.9 hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall test-suite doctests main-is: doctests.hs type: exitcode-stdio-1.0 build-depends: base >=4.8 && <4.9, doctest ==0.10.1, first-and-last hs-source-dirs: test default-language: Haskell2010 ghc-options: -Wall