Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 3fc6efcf5444dee0c690d4d57aab06a50593ad8a authored by Alice Brenon on 25 November 2025, 13:33:00 UTC, committed by Alice Brenon on 25 November 2025, 13:33:00 UTC
Switch license to GPLv3 (https://www.gnu.org/licenses/gpl.html)
1 parent aeff254
  • Files
  • Changes
  • 5709fd9
  • /
  • soprano.cabal
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:3fc6efcf5444dee0c690d4d57aab06a50593ad8a
directory badge
swh:1:dir:5709fd9134a64c18361f50e41c2ca0632d54953d
content badge
swh:1:cnt:5a2e7d7d35c1c8d9e832db281ec321415904b877

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
soprano.cabal
cabal-version:       >=1.10
-- Initial package description 'OLR.cabal' generated by 'cabal init'.  For
-- further documentation, see http://haskell.org/cabal/users-guide/

name:                soprano
version:             0.2.0.1
synopsis:            A tool to process ALTO files from the BnF
homepage:            https://gitlab.huma-num.fr/disco-lge/soprano
-- description:
-- bug-reports:
license:             GPL-3
license-file:        LICENSE.md
author:              Alice Brenon
maintainer:          alice.brenon@ens-lyon.fr
-- copyright:
category:            Text
build-type:          Simple
extra-source-files:  CHANGELOG.md, README.md

library
  exposed-modules:     Context
                     , Data.Char.Extra
                     , Data.String.Extra
                     , Log
                     , Scoria
                     , Text.XML.Light.ALTO
                     , Text.XML.Light.ALTO.Block
                     , Text.XML.Light.ALTO.Block.Caption
                     , Text.XML.Light.ALTO.Block.Header
                     , Text.XML.Light.ALTO.Block.Peritext
                     , Text.XML.Light.ALTO.Block.Pre
                     , Text.XML.Light.ALTO.Block.Sixteenmo
                     , Text.XML.Light.ALTO.Clean
                     , Text.XML.Light.ALTO.Dump
                     , Text.XML.Light.ALTO.Geometry
                     , Text.XML.Light.ALTO.Layout
                     , Text.XML.Light.ALTO.RectElement
                     , Text.XML.Light.ALTO.Retrieve
                     , Text.XML.Light.Extra
                     , Text.XML.Light.TEI
                     , Text.XML.Light.TEI.Article
                     , Text.XML.Light.TEI.Article.SegmenterUtils
                     , Text.XML.Light.XPath
                     , Step
                     , Utils
  -- other-modules:
  -- other-extensions:
  build-depends:       base >=4.11 && <4.16
                     , containers >= 0.6.0 && < 0.7
                     , edit-distance >= 0.2.2 && < 0.3
                     , mtl >= 2.2.2 && < 2.3
                     , pipes >= 4.3.13 && < 4.4
                     , roman-numerals >= 0.5.1.5 && < 0.6
                     , xml >= 1.3.14 && < 1.5
  hs-source-dirs:      lib
  ghc-options:         -Wall
  default-language:    Haskell2010

executable soprano
  main-is:             Main.hs
  other-modules:       Config
                     , Paths_soprano
  -- other-extensions:
  build-depends:       base
                     , containers
                     , directory >= 1.3.3 && < 1.4
                     , filepath >= 1.3 && < 1.5
                     , mtl
                     , optparse-applicative >= 0.13.2 && < 0.17
                     , pipes
                     , soprano
                     , unix >= 2.5.1 && < 2.8
                     , xml
  hs-source-dirs:      app
  ghc-options:         -Wall
  default-language:    Haskell2010

test-suite tests
  type:               detailed-0.9
  test-module:        Tests
  other-modules:      Articles
                    , Cleaning
                    , Mock.Context
                    , Mock.Headwords
                    , Mock.Layout
                    , Mock.Page
                    , Mock.Resource
                    , Mock.TextBlock
                    , Mock.XML
                    , Ordering
                    , Peritext
                    , RectElement
                    , XML
  build-depends:      base
                    , Cabal
                    , containers
                    , directory
                    , filepath
                    , mtl
                    , soprano
                    , xml
  hs-source-dirs:     test
  ghc-options:        -Wall
  default-language:    Haskell2010
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API