Skip to content

Commit 0a2e68c

Browse files
authored
Merge pull request #8252 from mpilgrem/abihash-docs
Fix Haddocks for `unAbiHash` and `mkAbiHash`
2 parents 8f6af47 + fb060cc commit 0a2e68c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Cabal-syntax/src/Distribution/Types/AbiHash.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ import Text.PrettyPrint (text)
2727
newtype AbiHash = AbiHash ShortText
2828
deriving (Eq, Show, Read, Generic, Typeable)
2929

30+
-- | Convert 'AbiHash' to 'String'
31+
--
32+
-- @since 2.0.0.2
33+
unAbiHash :: AbiHash -> String
34+
unAbiHash (AbiHash h) = fromShortText h
35+
3036
-- | Construct a 'AbiHash' from a 'String'
3137
--
3238
-- 'mkAbiHash' is the inverse to 'unAbiHash'
@@ -35,12 +41,6 @@ newtype AbiHash = AbiHash ShortText
3541
-- 'AbiHash' is valid
3642
--
3743
-- @since 2.0.0.2
38-
unAbiHash :: AbiHash -> String
39-
unAbiHash (AbiHash h) = fromShortText h
40-
41-
-- | Convert 'AbiHash' to 'String'
42-
--
43-
-- @since 2.0.0.2
4444
mkAbiHash :: String -> AbiHash
4545
mkAbiHash = AbiHash . toShortText
4646

0 commit comments

Comments
 (0)