Commit a3c89c96 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺
Browse files

Turn `ComponentId` into a `newtype`

This was an oversight of #3917; also this adds the forgotten changelog
entry for #3917
parent b3bdb151
......@@ -173,9 +173,7 @@ instance NFData Module where
-- This type is opaque since @Cabal-2.0@
--
-- @since 2.0
data ComponentId
= ComponentId ShortText
newtype ComponentId = ComponentId ShortText
deriving (Generic, Read, Show, Eq, Ord, Typeable, Data)
-- | Construct a 'ComponentId' from a 'String'
......
......@@ -49,6 +49,9 @@
* Backwards incompatible change to 'PackageName' (#3896):
'PackageName' is now opaque; conversion to/from 'String' now works
via (old) 'unPackageName' and (new) 'mkPackageName' functions.
* Backwards incompatible change to 'ComponentId' (#3917):
'ComponentId' is now opaque; conversion to/from 'String' now works
via 'unComponentId' and 'mkComponentId' functions.
* Backwards incompatible change to 'Version' (#3905):
Version is now opaque; conversion to/from '[Int]' now works
via 'versionNumbers' and 'mkVersion' functions.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment