HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleipynb-0.2Haskell2010

Data.Ipynb

Data structure and JSON serializers for ipynb (Jupyter notebook) format. Version 4 of the format is documented here: https://nbformat.readthedocs.io/en/latest/format_description.html.

The library supports both version 4 ('Notebook NbV4') and version 3 ('Notebook NbV3') of nbformat. Note that this is a phantom type: the NbV3 or NbV4 parameter only affects JSON serialization, not the data structure itself. So code that manipulates notebooks can be polymorphic, operating on `Notebook a`.

  • 12 types
  • 1 value
  • Packageipynb-0.2
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceIpynb.hs
datadata Notebook a
#

A Jupyter notebook.

Instances10Eq, Show, Generic, Semigroup, Monoid, FromJSON, …
newtypenewtype JSONMeta
#

Constructors

Instances9Eq, Ord, Show, Generic, Semigroup, Monoid, …
datadata Cell a
#
Instances8Eq, Show, Generic, FromJSON, ToJSON, Rep, …
newtypenewtype Source
#

A Source is a textual content which may be represented in JSON either as a single string or as a list of strings (which are concatenated).

Constructors

Instances8Eq, Show, Generic, Semigroup, Monoid, FromJSON, …
datadata CellType a
#

Information about the type of a notebook cell, plus data specific to that type. note that Heading is for v3 only; a Heading will be rendered as Markdown in v4.

Instances4Eq, Show, Generic, Rep
datadata Output a
#
Instances8Eq, Show, Generic, FromJSON, ToJSON, Rep, …
datadata MimeData
#

Data in an execution result or display data cell.

Instances6Eq, Ord, Show, Generic, ToJSON, Rep
newtypenewtype MimeBundle
#

A MimeBundle wraps a map from mime types to mime data.

Instances9Eq, Ord, Show, Generic, Semigroup, Monoid, …
newtypenewtype MimeAttachments
#
Instances9Eq, Ord, Show, Generic, Semigroup, Monoid, …
valuebreakLines :: Text -> [Text]
#

Break up a string into a list of strings, each representing one line of the string (including trailing newline if any).