possibly (empty) → 0.0.0.1
raw patch · 6 files changed
+80/−0 lines, 6 filesdep +basesetup-changed
Dependencies added: base
Files
- ChangeLog.md +3/−0
- LICENSE +30/−0
- README.md +1/−0
- Setup.hs +2/−0
- possibly.cabal +40/−0
- src/Data/Possibly.hs +4/−0
+ ChangeLog.md view
@@ -0,0 +1,3 @@+# 0.1.0.0++ * first release
+ LICENSE view
@@ -0,0 +1,30 @@+Copyright Chris Dornan (c) 2019++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++ * Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++ * Redistributions in binary form must reproduce the above+ copyright notice, this list of conditions and the following+ disclaimer in the documentation and/or other materials provided+ with the distribution.++ * Neither the name of Chris Dornan nor the names of other+ contributors may be used to endorse or promote products derived+ from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ README.md view
@@ -0,0 +1,1 @@+# possibly
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ possibly.cabal view
@@ -0,0 +1,40 @@+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.31.1.+--+-- see: https://github.com/sol/hpack+--+-- hash: 81cf25ba1d1ad291f25157e1056bd539e3fcb065cbf48f1d3f5a03a99182c4b9++name: possibly+version: 0.0.0.1+synopsis: type Possibly a = Either String a+description: A surprisingly useful type synonym for Either in which the Left diagnostic is a String, i.e, @type Possibly a = Either String a@+category: data+homepage: https://github.com/cdornan/possibly#readme+bug-reports: https://github.com/cdornan/possibly/issues+author: Chris Dornan+maintainer: chris@chrisdornan.com+copyright: 2019 Chris Dornan+license: BSD3+license-file: LICENSE+build-type: Simple+extra-source-files:+ README.md+ ChangeLog.md++source-repository head+ type: git+ location: https://github.com/cdornan/possibly++library+ exposed-modules:+ Data.Possibly+ other-modules:+ Paths_possibly+ hs-source-dirs:+ src+ ghc-options: -Wall+ build-depends:+ base >=0.0.0.0 && <100+ default-language: Haskell2010
+ src/Data/Possibly.hs view
@@ -0,0 +1,4 @@+module Data.Possibly where++-- | For contexts where the @Left@ type is a 'String' diagnostic.+type Possibly a = Either String a