diff --git a/Data/ASN1/BinaryEncoding/Parse.hs b/Data/ASN1/BinaryEncoding/Parse.hs
--- a/Data/ASN1/BinaryEncoding/Parse.hs
+++ b/Data/ASN1/BinaryEncoding/Parse.hs
@@ -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
diff --git a/Data/ASN1/Parse.hs b/Data/ASN1/Parse.hs
--- a/Data/ASN1/Parse.hs
+++ b/Data/ASN1/Parse.hs
@@ -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])
diff --git a/asn1-data.cabal b/asn1-data.cabal
--- a/asn1-data.cabal
+++ b/asn1-data.cabal
@@ -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
