asn1-types 0.1.0 → 0.1.2
raw patch · 3 files changed
+11/−4 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.ASN1.OID: class ObjectIdable a
+ Data.ASN1.OID: class OIDNameable a
+ Data.ASN1.OID: class OIDable a
+ Data.ASN1.OID: fromObjectID :: OIDNameable a => OID -> Maybe a
+ Data.ASN1.Types: Character :: ASN1StringEncoding
- Data.ASN1.OID: getObjectID :: ObjectIdable a => a -> OID
+ Data.ASN1.OID: getObjectID :: OIDable a => a -> OID
Files
- Data/ASN1/OID.hs +9/−3
- Data/ASN1/Types.hs +1/−0
- asn1-types.cabal +1/−1
Data/ASN1/OID.hs view
@@ -8,14 +8,20 @@ {-# LANGUAGE DeriveDataTypeable #-} module Data.ASN1.OID ( OID- -- * class- , ObjectIdable(..)+ -- * classes+ , OIDable(..)+ , OIDNameable(..) ) where -- | Standard ASN.1 Object ID (OID) type OID = [Integer] -- | Class of things that have an Object ID-class ObjectIdable a where+class OIDable a where -- | return the object ID of an Object from the ObjectIdentifiable class. getObjectID :: a -> OID++-- | Class of things that can be named by Object ID+class OIDNameable a where+ -- | Try to convert an OID into an Object+ fromObjectID :: OID -> Maybe a
Data/ASN1/Types.hs view
@@ -44,6 +44,7 @@ | Visible -- ^ International ASCII printing character sets | T61 -- ^ teletext | UTF32 -- ^ UTF32+ | Character -- ^ Character | BMP -- ^ UCS2 deriving (Show,Eq)
asn1-types.cabal view
@@ -1,5 +1,5 @@ Name: asn1-types-Version: 0.1.0+Version: 0.1.2 Description: ASN.1 standard types License: BSD3 License-file: LICENSE