VRML: VRML parser and generator for Haskell

[ graphics, library, mit, program ] [ Propose Tags ]

Please see the README on GitHub at https://github.com/junjihashimoto/VRML#readme

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Change log ChangeLog.md
Dependencies aeson, base (>=4.7 && <5), megaparsec, pretty-simple (>=, prettyprinter, text, VRML [details]
License MIT
Author Junji Hashimoto
Maintainer junji.hashimoto@gmail.com
Category Graphics
Home page https://github.com/junjihashimoto/VRML#readme
Bug tracker https://github.com/junjihashimoto/VRML/issues
Source repo head: git clone https://github.com/junjihashimoto/VRML
Uploaded by junjihashimoto at 2020-02-10T06:23:57Z
Executables vrmlproto2haskell, vrmlfmt, vrml2haskell
Downloads 339 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-02-10 [all 1 reports]

Readme for VRML-

[back to package description]


VRML is a text file format for a 3D polygon. It is a standard known as ISO/IEC 14772-1:1997. It has been superseded by X3D.

webots uses VRML-format to make simulation environment. This package is developed for making the environment by haskell.

VRML to Haskell

vrml2haskell command generates haskell-code from VRML-file. Usage is below.

> vrml2haskell "vrml file" > "haskell file"

Haskell to VRML

'ToNode' type-class makes VRML-data from Haskell-data with deriving ToNode.

class ToNode a where
  toNode :: NodeLike b => a -> b

Usage of deriving ToNode is below.

data Box = Box
  { size :: (Float,Float,Float)
  } deriving (Generic,Show,Eq,ToNode)