Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit b884110

Browse files
committed
Add tool to print generated module documentation
1 parent 9ac3173 commit b884110

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tools/print-docs.hs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env cabal
2+
{- cabal:
3+
build-depends: base
4+
, hslua
5+
, hslua-module-paths
6+
, text
7+
-}
8+
9+
import Data.Text
10+
import Foreign.Lua.Module (render)
11+
import Foreign.Lua.Module.Paths (documentedModule)
12+
13+
main :: IO ()
14+
main = putStrLn . unpack $ render documentedModule

0 commit comments

Comments
 (0)