-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose some potentially useful internal modules
- Loading branch information
Showing
9 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,19 @@ | |
{-# LANGUAGE RecordWildCards #-} | ||
|
||
-- | | ||
-- Module : Text.MMark.Type | ||
-- Module : Text.MMark.Internal.Type | ||
-- Copyright : © 2017–present Mark Karpov | ||
-- License : BSD 3 clause | ||
-- | ||
-- Maintainer : Mark Karpov <[email protected]> | ||
-- Stability : experimental | ||
-- Portability : portable | ||
-- | ||
-- Internal type definitions. Some of these are re-exported in the public | ||
-- modules. | ||
module Text.MMark.Type | ||
-- Internal type definitions. The public subset of these is re-exported from | ||
-- "Text.MMark.Extension". | ||
-- | ||
-- @since 0.0.8.0 | ||
module Text.MMark.Internal.Type | ||
( MMark (..), | ||
Extension (..), | ||
Render (..), | ||
|
@@ -116,6 +118,8 @@ instance Monoid Extension where | |
-- | An internal type that captures the extensible rendering process we use. | ||
-- 'Render' has a function inside which transforms a rendering function of | ||
-- the type @a -> Html ()@. | ||
-- | ||
-- @since 0.0.8.0 | ||
newtype Render a = Render | ||
{runRender :: (a -> Html ()) -> a -> Html ()} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters