title: Haskell Diagrams Output without commandline
body: <p>I have one question: I know how to output svg file with a help of   <code>ghc --make Strukturine.hs</code>   command in Terminal. As I understood it uses   <code>import Diagrams.Backend.SVG.CmdLine</code>   . Is it possible somehow load Strukturine.hs file with the help of <code>:load Strukturine.hs</code> in terminal and then just put the name of function for example: strukturine. That function should output a scheme/picture (to svg file).  </p>
  
  <p>The beginning of Strukturine.hs file looks like this</p>
  
  <pre><code>{-# 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)
  </code></pre>