Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion yampa/Yampa.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ library
ghc-options:
-O3 -Wall -fno-warn-name-shadowing

if !impl(ghc >= 8.0)
if !impl(ghc >= 8.0) && !impl(mhs)
build-depends:
fail == 4.9.*

Expand Down
8 changes: 4 additions & 4 deletions yampa/src/FRP/Yampa/InternalCore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ module FRP.Yampa.InternalCore
where

-- External imports
#if __GLASGOW_HASKELL__ < 710
#if __GLASGOW_HASKELL__ < 710 && !defined(__MHS__)
import Control.Applicative (Applicative(..))
#endif

import Control.Arrow (Arrow (..), ArrowChoice (..), ArrowLoop (..), (>>>))

#if __GLASGOW_HASKELL__ >= 610
#if __GLASGOW_HASKELL__ >= 610 || defined(__MHS__)
import qualified Control.Category (Category(..))
#endif

Expand Down Expand Up @@ -270,7 +270,7 @@ vfyNoEv _ _ =

-- * Arrow instance and implementation

#if __GLASGOW_HASKELL__ >= 610
#if __GLASGOW_HASKELL__ >= 610 || defined(__MHS__)
-- | Composition and identity for SFs.
instance Control.Category.Category SF where
(.) = flip compPrim
Expand Down Expand Up @@ -329,7 +329,7 @@ instance Arrow SF where
(***) = parSplitPrim
(&&&) = parFanOutPrim

#if __GLASGOW_HASKELL__ >= 610
#if __GLASGOW_HASKELL__ >= 610 || defined(__MHS__)
#else
(>>>) = compPrim
#endif
Expand Down