Skip to content

Commit

Permalink
get diagrams-povray building again
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Yorgey committed Sep 24, 2012
1 parent af96e51 commit c265bb4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
9 changes: 5 additions & 4 deletions diagrams-povray.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Source-repository head
Library
Exposed-modules: Diagrams.Backend.POVRay
Hs-source-dirs: src
Build-depends: base >= 4.2 && < 4.4,
diagrams-core >= 0.3 && < 0.4,
diagrams-lib >= 0.3 && < 0.4,
pretty >= 1.0.1.2 && < 1.1
Build-depends: base >= 4.2 && < 4.7,
diagrams-core >= 0.5 && < 0.6,
diagrams-lib >= 0.5 && < 0.6,
pretty >= 1.0.1.2 && < 1.2,
vector-space >= 0.8 && < 0.9
9 changes: 5 additions & 4 deletions src/Diagrams/Backend/POVRay.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, MultiParamTypeClasses
, TypeFamilies
, DeriveDataTypeable
, ViewPatterns
#-}

-----------------------------------------------------------------------------
Expand Down Expand Up @@ -58,7 +59,7 @@ povrayTransf t = OMTransf $
, v10, v11, v12
, v20, v21, v22
, v30, v31, v32 ]
where (v00, v01, v02) = apply t (1,0,0)
(v10, v11, v12) = apply t (0,1,0)
(v20, v21, v22) = apply t (0,0,1)
(v30, v31, v32) = transl t
where (unr3 -> (v00, v01, v02)) = apply t (r3 (1,0,0))
(unr3 -> (v10, v11, v12)) = apply t (r3 (0,1,0))
(unr3 -> (v20, v21, v22)) = apply t (r3 (0,0,1))
(unr3 -> (v30, v31, v32)) = transl t
6 changes: 3 additions & 3 deletions src/Diagrams/Backend/POVRay/Syntax.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE TypeSynonymInstances
, TypeFamilies
#-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : Diagrams.Backend.POVRay.Syntax
Expand Down

0 comments on commit c265bb4

Please sign in to comment.