commit 383576507498b2ad41a423cb9ce5fe2ca70c37d4
parent 6d087610a8d32e2d58ebeaa93779df4088b11772
Author: Jared Tobin <jared@jtobin.io>
Date: Mon, 20 Jan 2025 22:54:43 +0400
lib: qualify haddock links
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/Bitcoin/Prim/Script.hs b/lib/Bitcoin/Prim/Script.hs
@@ -13,8 +13,8 @@
-- Maintainer: Jared Tobin <jared@ppad.tech>
--
-- Representations for [Script](https://en.bitcoin.it/wiki/Script),
--- including abstract syntax, 'ByteArray', and base16-encoded
--- 'ByteString' versions, as well as fast conversion utilities for
+-- including abstract syntax, 'BA.ByteArray', and base16-encoded
+-- 'BS.ByteString' versions, as well as fast conversion utilities for
-- working with them.
module Bitcoin.Prim.Script (
@@ -84,7 +84,7 @@ hilo b =
-- script and term representation ---------------------------------------------
--- | A Script program, represented as a 'ByteArray'.
+-- | A Script program, represented as a 'BA.ByteArray'.
--
-- >>> from_base16 "0014b472a266d0bd89c13706a4132ccfb16f7c3b9fcb"
-- Just (Script
@@ -113,7 +113,7 @@ instance Show Term where
-- script conversions ---------------------------------------------------------
--- | Convert a 'Script' to a base16-encoded 'ByteString'.
+-- | Convert a 'Script' to a base16-encoded 'BS.ByteString'.
--
-- >>> let script = to_script [OPCODE OP_1, OPCODE OP_2, OPCODE OP_ADD]
-- >>> to_base16 script
@@ -122,7 +122,7 @@ to_base16 :: Script -> BS.ByteString
to_base16 (Script ba) = B16.encode (ba_to_bs ba)
{-# INLINE to_base16 #-}
--- | Convert a base16-encoded 'ByteString' to a 'Script'.
+-- | Convert a base16-encoded 'BS.ByteString' to a 'Script'.
--
-- >>> from_base16 "515293"
-- Just (Script [0x51, 0x52, 0x93])