packages feed

derulo 1.0.0 → 1.0.1

raw patch · 5 files changed

+71/−19 lines, 5 filesdep ~basedep ~doctestPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base, doctest

API changes (from Hackage documentation)

- Derulo: fromBase :: Integer -> (Char -> Maybe Integer) -> String -> Maybe Integer
- Derulo: fromDecimal :: String -> Maybe Integer
- Derulo: fromDecimalDigit :: Char -> Maybe Integer
- Derulo: fromHexadecimal :: String -> Maybe Integer
- Derulo: fromHexadecimalDigit :: Char -> Maybe Integer
- Derulo: isControl :: Char -> Bool
- Derulo: isDecimalDigit :: Char -> Bool
- Derulo: isHexadecimalDigit :: Char -> Bool
- Derulo: isLiteral :: Char -> Bool
- Derulo: isNonZeroDigit :: Char -> Bool
- Derulo: isWhitespace :: Char -> Bool
- Derulo: negateIf :: Bool -> Integer -> Integer
- Derulo: pArray :: ReadP JSON
- Derulo: pBoolean :: ReadP JSON
- Derulo: pCharacter :: ReadP Char
- Derulo: pEscape :: ReadP Char
- Derulo: pFalse :: ReadP JSON
- Derulo: pFraction :: ReadP (Integer, Integer)
- Derulo: pInteger :: ReadP Integer
- Derulo: pJSON :: ReadP JSON
- Derulo: pLiteral :: ReadP Char
- Derulo: pNonZero :: ReadP Integer
- Derulo: pNull :: ReadP JSON
- Derulo: pNumber :: ReadP JSON
- Derulo: pObject :: ReadP JSON
- Derulo: pPair :: ReadP (String, JSON)
- Derulo: pPower :: ReadP Integer
- Derulo: pString :: ReadP JSON
- Derulo: pSymbol :: String -> ReadP ()
- Derulo: pTrue :: ReadP JSON
- Derulo: pValue :: ReadP JSON
- Derulo: pWhitespaces :: ReadP ()
- Derulo: pZero :: ReadP Integer
- Derulo: padLeft :: Integer -> a -> [a] -> [a]
- Derulo: padRight :: Integer -> a -> [a] -> [a]
- Derulo: runParser :: ReadP a -> String -> Maybe a
- Derulo: sArray :: [JSON] -> ShowS
- Derulo: sBetween :: ShowS -> ShowS -> (anything -> ShowS) -> anything -> ShowS
- Derulo: sBoolean :: Bool -> ShowS
- Derulo: sCharacter :: Char -> ShowS
- Derulo: sFalse :: ShowS
- Derulo: sJSON :: JSON -> ShowS
- Derulo: sNull :: ShowS
- Derulo: sNumber :: Integer -> Integer -> ShowS
- Derulo: sObject :: [(String, JSON)] -> ShowS
- Derulo: sPair :: (String, JSON) -> ShowS
- Derulo: sSeparated :: ShowS -> (element -> ShowS) -> [element] -> ShowS
- Derulo: sSeparatedBetween :: ShowS -> ShowS -> ShowS -> (element -> ShowS) -> [element] -> ShowS
- Derulo: sString :: String -> ShowS
- Derulo: sTrue :: ShowS
- Derulo: toBase :: Integer -> (Integer -> Maybe Char) -> Integer -> String
- Derulo: toBase' :: Integer -> (Integer -> Maybe Char) -> Integer -> String
- Derulo: toHexadecimal :: Integer -> String
- Derulo: toHexadecimalDigit :: Integer -> Maybe Char

Files

LICENSE.markdown view
@@ -1,13 +1,13 @@-# [The MIT License](https://opensource.org/licenses/MIT)+MIT License -Copyright 2017 Taylor Fausak+Copyright (c) 2018 Taylor Fausak -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:+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.
derulo.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: bdaff30378436e1857a887c9cb0e0cc2e030f16165b1e5824fa4a31dcdc62826+-- hash: ccb2165bf0e94aa374735813267e185cf8c92ce5640351d639ba07180d9e1246  name:           derulo-version:        1.0.0+version:        1.0.1 synopsis:       Parse and render JSON simply. description:    Derulo parses and renders JSON simply. category:       JSON@@ -19,7 +19,9 @@  extra-source-files:     CHANGELOG.markdown+    package.yaml     README.markdown+    stack.yaml  source-repository head   type: git@@ -28,9 +30,9 @@ library   hs-source-dirs:       library-  ghc-options: -Wall+  ghc-options: -Weverything -Wno-implicit-prelude -Wno-safe -Wno-unsafe   build-depends:-      base >=4.8.2 && <4.11+      base >=4.9.0 && <4.12   exposed-modules:       Derulo   other-modules:@@ -41,9 +43,9 @@   main-is: Main.hs   hs-source-dirs:       executables-  ghc-options: -Wall -rtsopts -threaded+  ghc-options: -Weverything -Wno-implicit-prelude -Wno-safe -Wno-unsafe -rtsopts -threaded   build-depends:-      base >=4.8.2 && <4.11+      base >=4.9.0 && <4.12     , derulo   other-modules:       Paths_derulo@@ -54,10 +56,10 @@   main-is: Main.hs   hs-source-dirs:       tests-  ghc-options: -Wall -rtsopts -threaded+  ghc-options: -Weverything -Wno-implicit-prelude -Wno-safe -Wno-unsafe -rtsopts -threaded   build-depends:-      base >=4.8.2 && <4.11-    , doctest >=0.11.0 && <0.14+      base >=4.9.0 && <4.12+    , doctest >=0.11.0 && <0.16   other-modules:       Paths_derulo   default-language: Haskell2010
library/Derulo.hs view
@@ -21,7 +21,11 @@ -- -- >>> showJSON Null -- "null"-module Derulo where+module Derulo+  ( JSON(..)+  , readJSON+  , showJSON+  ) where  import qualified Control.Monad as Monad import qualified Data.Data as Data@@ -41,7 +45,7 @@   | String String   | Array [JSON]   | Object [(String, JSON)]-  deriving (Data.Data, Eq, Generics.Generic, Ord, Read, Show, Data.Typeable)+  deriving (Data.Data, Eq, Generics.Generic, Ord, Read, Show)  -- * Parsing -- | Parses a string as JSON.
+ package.yaml view
@@ -0,0 +1,45 @@+name: derulo+version: 1.0.1++category: JSON+description: Derulo parses and renders JSON simply.+extra-source-files:+  - CHANGELOG.markdown+  - package.yaml+  - README.markdown+  - stack.yaml+github: tfausak/derulo+license-file: LICENSE.markdown+license: MIT+maintainer: Taylor Fausak+synopsis: Parse and render JSON simply.++dependencies:+  base: '>= 4.9.0 && < 4.12'+ghc-options:+  - -Weverything+  - -Wno-implicit-prelude+  - -Wno-safe+  - -Wno-unsafe++library:+  source-dirs: library++executable:+  dependencies:+    derulo: -any+  ghc-options:+    - -rtsopts+    - -threaded+  main: Main.hs+  source-dirs: executables++tests:+  test:+    dependencies:+      doctest: '>= 0.11.0 && < 0.16'+    ghc-options:+      - -rtsopts+      - -threaded+    main: Main.hs+    source-dirs: tests
+ stack.yaml view
@@ -0,0 +1,1 @@+resolver: lts-11.0