diff --git a/app/Data/ProtoLens/Compiler/Generate.hs b/app/Data/ProtoLens/Compiler/Generate.hs
--- a/app/Data/ProtoLens/Compiler/Generate.hs
+++ b/app/Data/ProtoLens/Compiler/Generate.hs
@@ -642,14 +642,14 @@
                             ]
     constructorNames = map fst constructors
 
-    defaultCon = var $ unqual $ head constructorNames
+    defaultCon = var $ unqual minBoundName
 
-    minBoundName = head constructorNames
-    maxBoundName = last constructorNames
+    (minBoundName, maxBoundName, succPairs) =
+      case constructorNames of
+        (c : cs) -> (c, last constructorNames, zip constructorNames cs)
+        _ -> error $ "Unexpected empty constructors in " <> show (enumName info)
 
     constructorNumbers = map (second (fromIntegral . (^. #number))) constructors
-
-    succPairs = zip constructorNames $ tail constructorNames
 
     succDecl :: OccNameStr -> OccNameStr -> [(OccNameStr, OccNameStr)] -> RawInstDecl
     succDecl funName boundName thePairs = funBinds funName $
diff --git a/proto-lens-protoc.cabal b/proto-lens-protoc.cabal
--- a/proto-lens-protoc.cabal
+++ b/proto-lens-protoc.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           proto-lens-protoc
-version:        0.8.0.0
+version:        0.8.0.1
 synopsis:       Protocol buffer compiler for the proto-lens library.
 description:    Turn protocol buffer files (.proto) into Haskell files (.hs) which can be used with the proto-lens package.
                 The library component of this package contains compiler code (namely Data.ProtoLens.Compiler.*) is not guaranteed to have stable APIs.'
@@ -34,7 +34,7 @@
   hs-source-dirs:
       src
   build-depends:
-      base >=4.10 && <4.19
+      base >=4.10 && <4.20
     , filepath >=1.4 && <1.6
   default-language: Haskell2010
 
@@ -55,11 +55,11 @@
   hs-source-dirs:
       app
   build-depends:
-      base >=4.10 && <4.19
-    , bytestring >=0.10 && <0.12
-    , containers >=0.5 && <0.7
+      base >=4.10 && <4.20
+    , bytestring >=0.10 && <0.13
+    , containers >=0.5 && <0.8
     , filepath >=1.4 && <1.6
-    , ghc >=8.2 && <9.8
+    , ghc >=8.2 && <9.9
     , ghc-paths ==0.1.*
     , ghc-source-gen ==0.4.*
     , lens-family >=1.2 && <2.2
