packages feed

language-avro 0.1.3.0 → 0.1.3.1

raw patch · 3 files changed

+5/−8 lines, 3 filesdep ~avroPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: avro

API changes (from Hackage documentation)

- Language.Avro.Types: [IdlImport] :: Text -> ImportType
- Language.Avro.Types: [ProtocolImport] :: Text -> ImportType
- Language.Avro.Types: [SchemaImport] :: Text -> ImportType
- Language.Avro.Types: [order] :: Schema -> Maybe Order
+ Language.Avro.Types: IdlImport :: Text -> ImportType
+ Language.Avro.Types: ProtocolImport :: Text -> ImportType
+ Language.Avro.Types: SchemaImport :: Text -> ImportType
- Language.Avro.Types: Record :: TypeName -> [TypeName] -> Maybe Text -> Maybe Order -> [Field] -> Schema
+ Language.Avro.Types: Record :: TypeName -> [TypeName] -> Maybe Text -> [Field] -> Schema

Files

language-avro.cabal view
@@ -1,5 +1,5 @@ name:               language-avro-version:            0.1.3.0+version:            0.1.3.1 synopsis:           Language definition and parser for AVRO files. description:   Parser for the AVRO language specification, see README.md for more details.@@ -21,8 +21,8 @@     Language.Avro.Types    build-depends:-      avro        >=0.5-    , base        >=4.12 && <5+      avro        >=0.5.1+    , base        >=4.12  && <5     , containers     , directory     , filepath@@ -40,8 +40,8 @@   hs-source-dirs:   test   ghc-options:      -threaded -rtsopts -with-rtsopts=-N   build-depends:-      avro              >=0.5-    , base              >=4.12 && <5+      avro              >=0.5.1+    , base              >=4.12  && <5     , hspec     , hspec-megaparsec     , language-avro
src/Language/Avro/Parser.hs view
@@ -232,7 +232,6 @@           <$> option [] parseAliases <* (reserved "record" <|> reserved "error")           <*> parseTypeName           <*> pure Nothing -- docs are ignored for now...-          <*> optional parseOrder -- FIXME: order for records is not supported yet.           <*> option [] (braces . many $ parseField)       )     <|> NamedType . toNamedType <$> lexeme (sepBy1 identifier $ char '.')
test/Spec.hs view
@@ -159,7 +159,6 @@           (TN "Person" [])           [TN "Person" ["org", "foo"]]           Nothing -- docs are ignored for now...-          Nothing -- order is ignored for now...           [ Field "name" [] Nothing Nothing String' Nothing,             Field "age" [] Nothing Nothing Int' Nothing,             Field "birthday" [] Nothing Nothing (Int (Just Date)) Nothing@@ -170,7 +169,6 @@           (TN "TestRecord" [])           []           Nothing -- docs are ignored for now...-          Nothing -- order is ignored for now...           [ Field "name" [] Nothing (Just Ignore) String' Nothing,             Field "kind" [] Nothing (Just Descending) (NamedType "Kind") Nothing,             Field "hash" [] Nothing Nothing (NamedType "MD5") Nothing,