Fix the name of the Word16ElemRep wired-in datacon
authormniip <mniip@mniip.com>
Sun, 13 Mar 2016 17:12:55 +0000 (18:12 +0100)
committerBen Gamari <ben@smart-cactus.org>
Mon, 14 Mar 2016 12:25:32 +0000 (13:25 +0100)
Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1999

compiler/prelude/TysWiredIn.hs
testsuite/tests/th/T11145.stderr

index c58bf32..98a5665 100644 (file)
@@ -323,7 +323,7 @@ vecElemTyConName = mkWiredInTyConName UserSyntax gHC_TYPES (fsLit "VecElem") vec
 vecElemDataConNames :: [Name]
 vecElemDataConNames = zipWith3Lazy mk_special_dc_name
                         [ fsLit "Int8ElemRep", fsLit "Int16ElemRep", fsLit "Int32ElemRep"
-                        , fsLit "Int64ElemRep", fsLit "Word8ElemRep", fsLit "Word16elemRep"
+                        , fsLit "Int64ElemRep", fsLit "Word8ElemRep", fsLit "Word16ElemRep"
                         , fsLit "Word32ElemRep", fsLit "Word64ElemRep"
                         , fsLit "FloatElemRep", fsLit "DoubleElemRep" ]
                         vecElemDataConKeys
index 98e518c..d198739 100644 (file)
@@ -3,6 +3,6 @@ T11145.hs:8:1: error:
     • Data constructor ‘MkFuggle’ returns type ‘Fuggle
                                                   Int (Maybe Bool)’
         instead of an instance of its parent type ‘Fuggle
-                                                     Int (Maybe (a_a4MU, b_a4MV))’
+                                                     Int (Maybe (a_a4MT, b_a4MU))’
     • In the definition of data constructor ‘MkFuggle’
       In the data instance declaration for ‘Fuggle’