packages feed

gitignore 1.0.0 → 1.0.1

raw patch · 2 files changed

+14/−10 lines, 2 filesdep ~aesondep ~basedep ~base64-bytestring

Dependency ranges changed: aeson, base, base64-bytestring, bytestring, http-conduit, network, text

Files

gitignore.cabal view
@@ -1,24 +1,28 @@--- Initial gitignore.cabal generated by cabal init.  For further--- documentation, see http://haskell.org/cabal/users-guide/- name:                gitignore-version:             1.0.0+version:             1.0.1 synopsis:            Apply GitHub .gitignore templates to already existing repositories. description:         Apply GitHub .gitignore templates to already existing repositories.-homepage:            https://github.com/CodeBlock/gitignore+homepage:            https://github.com/relrod/gitignore license:             BSD3 license-file:        LICENSE author:              Ricky Elrod maintainer:          ricky@elrod.me-copyright:           2013 Ricky Elrod+copyright:           2014 Ricky Elrod category:            Development build-type:          Simple cabal-version:       >=1.8  source-repository head   type:         git-  location:     git://github.com:CodeBlock/gitignore.git+  location:     git://github.com:relrod/gitignore.git  executable gitignore   main-is:              gitignore.hs-  build-depends:        aeson ==0.6.*, base >=4.6 && <4.7, base64-bytestring ==1.0.*, bytestring ==0.10.*, http-conduit ==1.9.5.*, network ==2.4.*, safe ==0.3.*, text ==0.11.*+  build-depends:        aeson >= 0.8 && < 0.9,+                        base >= 4 && < 5,+                        base64-bytestring >= 1 && < 2,+                        bytestring >= 0.10 && < 1,+                        http-conduit >= 2 && < 3,+                        network >= 2.4 && < 3,+                        safe >= 0.3 && < 0.4,+                        text >= 0.11 && < 1.3
gitignore.hs view
@@ -24,7 +24,7 @@ } deriving Show  data GitIgnoreFile = GitIgnoreFile {-    content :: B.ByteString+    content :: String }  instance FromJSON GitIgnoreIndex where@@ -62,7 +62,7 @@   let decodedBody = decode (responseBody l) :: Maybe GitIgnoreFile   case decodedBody of     Nothing -> error "JSON decode failed"-    Just g -> return $ Base64.decodeLenient $ content g+    Just g -> return . Base64.decodeLenient . C8.pack . content $ g  main :: IO () main = do