simtreelo 0.1.1.1 → 0.1.1.2
raw patch · 3 files changed
+13/−58 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- Data/Simtreelo.hs +4/−4
- simtreelo.5 +1/−1
- simtreelo.cabal +8/−53
Data/Simtreelo.hs view
@@ -1,5 +1,5 @@ {--Copyright 2013, 2014 Marcelo Garlet Millani+Copyright 2013-2017 Marcelo Garlet Millani This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or@@ -15,7 +15,7 @@ -} {-| Module : Simtreelo-Description : +Description : Copyright : (c) Marcelo Garlet Millani License : GPL-3 Maintainer : marcelogmillani@gmail.com@@ -67,8 +67,8 @@ where indentation = concat $ take depth $ repeat indent children = concat $ map (toString' indent (depth + 1) ) $ subForest tree- + -- | The input 'String' must be organized in such a way that every child is one indentation lower than its parent, and all siblings have the same indentation. -- -- The 'String' used for indentation is inferred from the first indentation depth@@ -94,7 +94,7 @@ parse (h:r) ln d Nothing comment = do let (name,spaces) = separate' h if (strip name comment) == "" then parse r (ln+1) d Nothing comment- else do + else do let (indentor,depth) = if spaces == "" then (Nothing,0) else (Just spaces,1) (children,rest,ln') <- parse r (ln + 1) (d + 1) indentor comment if depth == d then do
simtreelo.5 view
@@ -1,6 +1,6 @@ .\" Manpage for simtreelo. .\" Contact marcelogmillani@gmail.com to correct errors or typos.-.TH man 5 "21 Oct 2014" "0.1.0.0" "simtreelo man page"+.TH man 5 "2017.09.28" "0.1.1.2" "simtreelo man page" .SH NAME simtreelo \- tree file format .SH DESCRIPTION
simtreelo.cabal view
@@ -1,72 +1,27 @@--- Initial Simtreelo.cabal generated by cabal init. For further +-- Initial Simtreelo.cabal generated by cabal init. For further -- documentation, see http://haskell.org/cabal/users-guide/ -- The name of the package. name: simtreelo---- The package version. See the Haskell package versioning policy (PVP) --- for standards guiding when and how versions should be incremented.--- http://www.haskell.org/haskellwiki/Package_versioning_policy--- PVP summary: +-+------- breaking API changes--- | | +----- non-breaking API additions--- | | | +--- code changes with no API change-version: 0.1.1.1---- A short (one-line) description of the package.+version: 0.1.1.2 synopsis: Loader for data organized in a tree---- A longer description of the package. description: This library loads a string or file into a Tree. The hierarchy is given solely by the indentation, meaning that the input is human-readable.---- The license under which the package is released. license: GPL-3---- The file containing the license text. license-file: LICENSE---- The package author(s). author: Marcelo Garlet Millani---- An email address to which users can send suggestions, bug reports, and --- patches. maintainer: marcelogmillani@gmail.com---- A copyright notice.-copyright: (c) 2014, 2015 Marcelo Garlet Millani-+copyright: (c) 2014-2017 Marcelo Garlet Millani category: Data- build-type: Simple---- Extra files to be distributed with the package, such as examples or a --- README.--- extra-source-files:-extra-doc-files: README.md, simtreelo.5--- Constraint on the version of Cabal needed to build this package.-cabal-version: >=1.10-+extra-doc-files: README.md, simtreelo.5+cabal-version: >=1.18 library- -- Modules exported by the library.- -- exposed-modules: - - -- Modules included in this library but not exported.- -- other-modules: - - -- LANGUAGE extensions used by modules in this package.- -- other-extensions: - - -- Other library packages from which modules are imported.- build-depends: base >=4.8 && <=4.10, containers+ build-depends: base >=4.8 && <4.11, containers exposed-modules: Data.Simtreelo- default-extensions: DoAndIfThenElse, FlexibleInstances- - -- Directories containing source files.- -- hs-source-dirs: - - -- Base language which the package is written in.+ default-extensions: DoAndIfThenElse, FlexibleInstances default-language: Haskell2010- + source-repository head type: darcs location: http://hub.darcs.net/mgmillani/Simtreelo