A Haskell library for working with collections of manuscripts