scroll-list: This package provides functions for relocate an item within a list.

[ bsd3, library, list ] [ Propose Tags ]

Please see the README on GitHub at

[Skip to Readme]
Versions [RSS] [faq],,
Change log
Dependencies base (>=4.7 && <5), extra (>=1.7.9 && <2.0.0) [details]
License BSD-3-Clause
Copyright 2021 Felipe Santa-Cruz
Author Felipe Santa-Cruz
Category List
Home page
Bug tracker
Source repo head: git clone
Uploaded by fesanmar at 2021-04-04T08:31:17Z
Distributions NixOS:
Downloads 181 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-04-04 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for scroll-list-

[back to package description]


Build Status

Haskell package that provides functions for relocate an item within a list.


Add scroll-list to your package.yml and import Data.List.Scroll module. The following functions are available in the module:

Up function

The up function moves an element 'n' positions to the beginning of a list.

>>> up 2 2 ["one", "two", "three"]
["three", "one", "two"]

Down function

The down function moves an element n positions to the end of a list.

>>> down 0 1 ["one", "two", "three"]
["two", "one", "three"]

Remove by idenx function

The deleteByIndex function removes an element from a list by its within it.

>>> deleteByIndex 1 ["one", "two", "three"]
["one", "three"]

Read the documentation in hackage.