-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Template Haskell extensions to the Bech32 library.
--   
--   Template Haskell extensions to the Bech32 library, including
--   quasi-quoters for compile-time checking of Bech32 string literals.
@package bech32-th
@version 1.1.1


-- | This module contains Template-Haskell-specific extensions to the
--   <a>Bech32 library</a>.
module Codec.Binary.Bech32.TH

-- | A quasiquoter for Bech32 human-readable prefixes.
--   
--   This quasiquoter makes it possible to construct values of type
--   <a>HumanReadablePart</a> at compile time, using string literals.
--   
--   Failure to parse a string literal will result in a <b>compile-time
--   error</b>.
--   
--   See <a>HumanReadablePartError</a> for the set of possible errors that
--   can be raised.
--   
--   Example:
--   
--   <pre>
--   &gt;&gt;&gt; :set -XQuasiQuotes
--   
--   &gt;&gt;&gt; import Codec.Binary.Bech32
--   
--   &gt;&gt;&gt; import Codec.Binary.Bech32.TH
--   
--   &gt;&gt;&gt; let addrPrefix = [humanReadablePart|addr|]
--   
--   &gt;&gt;&gt; addrPrefix
--   HumanReadablePart "addr"
--   
--   &gt;&gt;&gt; :t addrPrefix
--   addrPrefix :: HumanReadablePart
--   </pre>
humanReadablePart :: QuasiQuoter
