I have one question: I know how to output svg file with a help of ghc --make Strukturine.hs
command in Terminal. As I understood it uses import Diagrams.Backend.SVG.CmdLine
. Is it possible somehow load Strukturine.hs file with the help of :load Strukturine.hs
in terminal and then just put the name of function for example: strukturine. That function should output a scheme/picture (to svg file).
The beginning of Strukturine.hs file looks like this
{-# LANGUAGE NoMonomorphismRestriction #-}
module Strukturine where
import Diagrams.Prelude
import Diagrams.Backend.SVG.CmdLine
import Data.Maybe (fromMaybe)
import Data.Char
import Input
import qualified Input(getNumber) --other module
main = mainWith(strukturine :: Diagram B R2)