Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support ghc 7.10 #259

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions Data/Array/Accelerate/Data/Complex.hs
Expand Up @@ -7,6 +7,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE CPP #-}
{-# OPTIONS -fno-warn-orphans #-}

module Data.Array.Accelerate.Data.Complex (
Expand All @@ -27,8 +28,11 @@ module Data.Array.Accelerate.Data.Complex (
conjugate,

) where

#if __GLASGOW_HASKELL__ >= 710
import Prelude hiding ( (<*))
#else
import Prelude
#endif
import Data.Complex ( Complex(..) )
import Data.Array.Accelerate
import Data.Array.Accelerate.Smart
Expand Down Expand Up @@ -166,4 +170,3 @@ imag c =
--
conjugate :: (Elt a, IsNum a) => Exp (Complex a) -> Exp (Complex a)
conjugate z = lift $ real z :+ (- imag z)

5 changes: 2 additions & 3 deletions accelerate.cabal
Expand Up @@ -167,7 +167,7 @@ Flag internal-checks

Library
Build-depends: array >= 0.3,
base == 4.7.*,
base >= 4.7,
containers >= 0.3,
exceptions >= 0.6,
unordered-containers >= 0.2,
Expand All @@ -176,7 +176,7 @@ Library
hashable >= 1.1,
hashtables >= 1.0,
pretty >= 1.0,
template-haskell == 2.9.*,
template-haskell >= 2.9,
mtl >= 2.0,
transformers >= 0.3

Expand Down Expand Up @@ -270,4 +270,3 @@ Library
Source-repository head
Type: git
Location: git://github.com/AccelerateHS/accelerate.git