packages feed

asn1-data 0.7.1 → 0.7.2

raw patch · 3 files changed

+9/−6 lines, 3 filesdep ~basedep ~mtlPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, mtl

API changes (from Hackage documentation)

+ Data.ASN1.Parse: instance Applicative ParseASN1

Files

Data/ASN1/BinaryEncoding/Parse.hs view
@@ -38,8 +38,10 @@ data ParseExpect = ExpectHeader (Maybe (B.ByteString -> Result ASN1Header))                  | ExpectPrimitive Word64 (Maybe (B.ByteString -> Result ByteString)) +type ParsePosition = Word64+ -- | represent the parsing state of an ASN1 stream.-data ParseState = ParseState [ConstructionEndAt] ParseExpect Word64+data ParseState = ParseState [ConstructionEndAt] ParseExpect ParsePosition  -- | create a new empty parse state. position is 0 newParseState :: ParseState
Data/ASN1/Parse.hs view
@@ -21,11 +21,11 @@ import Data.ASN1.Stream import Control.Monad.State import Control.Monad.Error-import Control.Applicative ((<$>))+import Control.Applicative (Applicative, (<$>))  -- | Parse ASN1 Monad newtype ParseASN1 a = P { runP :: ErrorT String (State [ASN1]) a }-        deriving (Functor, Monad, MonadError String)+        deriving (Applicative, Functor, Monad, MonadError String)  -- | run the parse monad over a stream and returns the result and the remaining ASN1 Stream. runParseASN1State :: ParseASN1 a -> [ASN1] -> Either String (a,[ASN1])
asn1-data.cabal view
@@ -1,5 +1,5 @@ Name:                asn1-data-Version:             0.7.1+Version:             0.7.2 Description:     ASN1 data reader and writer in raw form with supports for high level forms of ASN1 (BER, and DER). License:             BSD3@@ -12,7 +12,7 @@ Category:            Data stability:           experimental Cabal-Version:       >=1.6-Homepage:            http://github.com/vincenthz/hs-asn1-data+Homepage:            https://github.com/vincenthz/hs-asn1/tree/master/data data-files:          README, TODO  @@ -58,4 +58,5 @@  source-repository head   type:     git-  location: git://github.com/vincenthz/hs-asn1-data+  location: https://github.com/vincenthz/hs-asn1-data+  subdir:   data