Skip to content

Commit

Permalink
fix some build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dagit committed Jul 7, 2013
1 parent 9f66848 commit e308520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 2 additions & 3 deletions haray.cabal
Expand Up @@ -41,8 +41,6 @@ Executable haray
, lin-alg

Library
include-dirs: cbits
includes: structs.h
hs-source-dirs: src
default-language: Haskell2010

Expand Down Expand Up @@ -86,7 +84,8 @@ Library
, mainland-pretty
-- Need full support for OpenCL types
, language-c-quote >= 0.7.2

include-dirs: cbits
includes: structs.h
-- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
-- Build-tools:

9 changes: 1 addition & 8 deletions src/Graphics/Rendering/Haray/Shape.hsc
Expand Up @@ -232,14 +232,7 @@ instance Storable (Vec3 CFloat) where
(#poke cl_float3, x) ptr x
(#poke cl_float3, y) ptr y
(#poke cl_float3, z) ptr z
{-
sizeOf _ = sizeOf (0::CFloat) * 3
alignment _ = alignment (0::CFloat)
peek ptr =
Vec3 <$> peek (castPtr ptr)
<*> peek (ptr `plusPtr` sizeOf (0::CFloat))
<*> peek (ptr `plusPtr` (2*sizeOf (0::CFloat)))
-}

instance Storable (SphereData CFloat) where
sizeOf _ = (#size Sphere)
alignment _ = (#alignment Sphere)
Expand Down

0 comments on commit e308520

Please sign in to comment.