print-info (empty) → 0.1.0.0
raw patch · 5 files changed
+74/−0 lines, 5 filesdep +basesetup-changed
Dependencies added: base
Files
- ChangeLog.md +5/−0
- Data/Print/Info.hs +22/−0
- LICENSE +20/−0
- Setup.hs +2/−0
- print-info.cabal +25/−0
+ ChangeLog.md view
@@ -0,0 +1,5 @@+# Revision history for print-info++## 0.1.0.0 -- 2020-09-01++* First version. Released on an unsuspecting world.
+ Data/Print/Info.hs view
@@ -0,0 +1,22 @@+-- |+-- Module : Data.Print.Info+-- Copyright : (c) OleksandrZhabenko 2020+-- License : MIT+-- Stability : Experimental+-- Maintainer : olexandr543@yahoo.com+--+-- Can be used to coordinate the printing output.++module Data.Print.Info where++-- | Is used to define what information is printed. The greater values correspond to more verbose output.+data Info = A | B | C | D | E | F deriving (Eq, Ord)++-- | The same as 'Info' but is used for cases of printing to the file specified as a 'String' parameter with the corresponding first capital letter +-- analogue of 'Info' data type.+data InfoFile = Af String | Bf String | Cf String | Df String | Ef String | Ff String deriving (Eq, Ord)++data InfoG a b = I1 a | I2 b deriving Eq++-- | Type synonym used to coordinate the printing output in general case. +type Info2 = InfoG Info InfoFile
+ LICENSE view
@@ -0,0 +1,20 @@+Copyright (c) 2020 OleksandrZhabenko++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the+"Software"), to deal in the Software without restriction, including+without limitation the rights to use, copy, modify, merge, publish,+distribute, sublicense, and/or sell copies of the Software, and to+permit persons to whom the Software is furnished to do so, subject to+the following conditions:++The above copyright notice and this permission notice shall be included+in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ print-info.cabal view
@@ -0,0 +1,25 @@+-- Initial print-info.cabal generated by cabal init. For further+-- documentation, see http://haskell.org/cabal/users-guide/++name: print-info+version: 0.1.0.0+synopsis: Can be used to coordinate the printing output.+description: Can be used to coordinate the printing output.+homepage: https://hackage.haskell.org/package/print-info+license: MIT+license-file: LICENSE+author: OleksandrZhabenko+maintainer: olexandr543@yahoo.com+copyright: Oleksandr Zhabenko+category: Data+build-type: Simple+extra-source-files: ChangeLog.md+cabal-version: >=1.10++library+ exposed-modules: Data.Print.Info+ -- other-modules:+ -- other-extensions:+ build-depends: base >=4.7 && <4.15+ -- hs-source-dirs:+ default-language: Haskell2010