Skip to content

Commit

Permalink
Remove unused language extensions. Refs #199.
Browse files Browse the repository at this point in the history
Some modules declare GHC extensions that are not really needed in the
code inside the module. This is likely a vestige from when all code
lived in one main FRP module.

Removing unnecessary extensions will make the code easier to maintain,
read, and also help remove the use of unnecessary extensions in the
future if possible (which would make the code more portable).

This commit removes unused GHC extensions from all Yampa modules.
  • Loading branch information
ivanperez-keera committed Mar 17, 2022
1 parent 27f43f2 commit 75ca6b3
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 30 deletions.
3 changes: 0 additions & 3 deletions yampa/src/FRP/Yampa.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
--------------------------------------------------------------------------------
-- |
-- Module : FRP.Yampa
Expand Down
3 changes: 1 addition & 2 deletions yampa/src/FRP/Yampa/Arrow.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE CPP #-}
--------------------------------------------------------------------------------
-- |
-- Module : FRP.Yampa.Arrow
Expand Down
3 changes: 0 additions & 3 deletions yampa/src/FRP/Yampa/Basic.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
-- |
-- Module : FRP.Yampa.Basic
-- Copyright : (c) Antony Courtney and Henrik Nilsson, Yale University, 2003
Expand Down
3 changes: 0 additions & 3 deletions yampa/src/FRP/Yampa/EventS.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
-- |
-- Module : FRP.Yampa.EventS
-- Copyright : (c) Antony Courtney and Henrik Nilsson, Yale University, 2003
Expand Down
5 changes: 2 additions & 3 deletions yampa/src/FRP/Yampa/InternalCore.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
--------------------------------------------------------------------------------
-- |
-- Module : FRP.Yampa
Expand Down
3 changes: 0 additions & 3 deletions yampa/src/FRP/Yampa/Loop.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
--------------------------------------------------------------------------------
-- |
-- Module : FRP.Yampa.Loop
Expand Down
3 changes: 0 additions & 3 deletions yampa/src/FRP/Yampa/Random.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
--------------------------------------------------------------------------------
-- |
-- Module : FRP.Yampa.Random
Expand Down
3 changes: 0 additions & 3 deletions yampa/src/FRP/Yampa/Scan.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
-- |
-- Module : FRP.Yampa.Scan
-- Copyright : (c) Antony Courtney and Henrik Nilsson, Yale University, 2003
Expand Down
5 changes: 0 additions & 5 deletions yampa/src/FRP/Yampa/Simulation.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE Rank2Types #-}
--------------------------------------------------------------------------------
-- |
-- Module : FRP.Yampa.Simulation
Expand Down
2 changes: 0 additions & 2 deletions yampa/src/FRP/Yampa/Switches.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
--------------------------------------------------------------------------------
-- |
Expand Down

0 comments on commit 75ca6b3

Please sign in to comment.