File: smart-constructors.lua

package info (click to toggle)
haskell-pandoc-lua-engine 0.2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 648 kB
  • sloc: haskell: 3,709; makefile: 6
file content (10 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
-- Test that constructors are "smart" in that they autoconvert
-- types where sensible.
function Para (_)
  return {
    pandoc.BulletList{pandoc.Para "Hello", pandoc.Para "World"},
    pandoc.DefinitionList{{"foo", pandoc.Para "placeholder"}},
    pandoc.LineBlock{"Moin", "Welt"},
    pandoc.OrderedList{pandoc.Plain{pandoc.Str "one"}, pandoc.Plain "two"}
  }
end