on develop help sign in
Activate common extensions in cabal file
commiteb0e4992a5fe8a85b3fea02b4ccd01dc83776b01 authorAli Abrar <aliabrar@gmail.com> dateMon 22 Mar 2021, 19:40 (6 years ago) parent34847fb
10 files changed+34−55
reflex-vty.cabal+31−1 src/Control/Monad/NodeId.hs+1−6 src/Data/Text/Zipper.hs−4 src/Reflex/Class/Switchable.hs+1−3 src/Reflex/Spider/Orphans.hs−3 src/Reflex/Vty/Host.hs−6 src/Reflex/Vty/Widget.hs+1−14 src/Reflex/Vty/Widget/Input.hs−2 src/Reflex/Vty/Widget/Input/Text.hs−5 src/Reflex/Vty/Widget/Layout.hs−11
reflex-vty.cabal+31−1
@@ -50,11 +50,41 @@ library
5050 hs-source-dirs: src
5151 default-language: Haskell2010
5252 ghc-options: -Wall
53+ default-extensions:
54+ BangPatterns
55+ ConstraintKinds
56+ CPP
57+ DataKinds
58+ DefaultSignatures
59+ DeriveFunctor
60+ DeriveGeneric
61+ FlexibleContexts
62+ FlexibleInstances
63+ FunctionalDependencies
64+ GADTs
65+ GeneralizedNewtypeDeriving
66+ KindSignatures
67+ LambdaCase
68+ MultiParamTypeClasses
69+ MultiWayIf
70+ OverloadedStrings
71+ PatternGuards
72+ PolyKinds
73+ QuasiQuotes
74+ RankNTypes
75+ RecursiveDo
76+ ScopedTypeVariables
77+ StandaloneDeriving
78+ TemplateHaskell
79+ TupleSections
80+ TypeApplications
81+ TypeFamilies
82+
5383
5484executable example
5585 hs-source-dirs: src-bin
5686 main-is: example.hs
57− ghc-options: -threaded
87+ ghc-options: -threaded -Wall
5888 build-depends:
5989 base,
6090 containers,
src/Control/Monad/NodeId.hs+1−6
@@ -2,12 +2,7 @@
22Module: Control.Monad.NodeId
33Description: Monad providing a supply of unique identifiers
44-}
5−{-# LANGUAGE DefaultSignatures #-}
6−{-# LANGUAGE FlexibleInstances #-}
7−{-# LANGUAGE GADTs #-}
8−{-# LANGUAGE GeneralizedNewtypeDeriving #-}
9−{-# LANGUAGE MultiParamTypeClasses #-}
10−{-# LANGUAGE UndecidableInstances #-}
5+{-# Language UndecidableInstances #-}
116module Control.Monad.NodeId
127 ( NodeId
138 , MonadNodeId (..)
src/Data/Text/Zipper.hs−4
@@ -7,10 +7,6 @@ Description: A zipper for text documents that allows convenient editing and navi
77'TextZipper's can be converted into 'DisplayLines', which describe how the contents of the zipper will be displayed when wrapped to fit within a container of a certain width. It also provides some convenience facilities for converting interactions with the rendered DisplayLines back into manipulations of the underlying TextZipper.
88
99-}
10−{-# LANGUAGE BangPatterns #-}
11−{-# LANGUAGE FlexibleContexts #-}
12−{-# LANGUAGE LambdaCase #-}
13−{-# LANGUAGE OverloadedStrings #-}
1410module Data.Text.Zipper where
1511
1612import Data.Char (isSpace)
src/Reflex/Class/Switchable.hs+1−3
@@ -2,9 +2,7 @@
22Module: Reflex.Class.Switchable
33Description: A class for things that can be switched on the firing of an event
44-}
5−{-# LANGUAGE FlexibleInstances #-}
6−{-# LANGUAGE FunctionalDependencies #-}
7−{-# LANGUAGE UndecidableInstances #-}
5+{-# Language UndecidableInstances #-}
86module Reflex.Class.Switchable where
97
108import Control.Monad
src/Reflex/Spider/Orphans.hs−3
@@ -2,9 +2,6 @@
22Module: Reflex.Spider.Orphans
33Description: Orphan instances for SpiderTimeline and SpiderHost
44-}
5−{-# LANGUAGE CPP #-}
6−{-# LANGUAGE FlexibleInstances #-}
7−{-# LANGUAGE MultiParamTypeClasses #-}
85{-# OPTIONS_GHC -fno-warn-orphans #-}
96module Reflex.Spider.Orphans where
107
src/Reflex/Vty/Host.hs−6
@@ -2,12 +2,6 @@
22Module: Reflex.Vty.Host
33Description: Scaffolding for running a reflex-vty application
44-}
5−{-# LANGUAGE ConstraintKinds #-}
6−{-# LANGUAGE FlexibleContexts #-}
7−{-# LANGUAGE GADTs #-}
8−{-# LANGUAGE LambdaCase #-}
9−{-# LANGUAGE RankNTypes #-}
10−
115module Reflex.Vty.Host
126 ( VtyApp
137 , VtyResult(..)
src/Reflex/Vty/Widget.hs+1−14
@@ -2,20 +2,7 @@
22Module: Reflex.Vty.Widget
33Description: Basic set of widgets and building blocks for reflex-vty applications
44-}
5−{-# LANGUAGE DefaultSignatures #-}
6−{-# LANGUAGE DeriveFunctor #-}
7−{-# LANGUAGE FlexibleContexts #-}
8−{-# LANGUAGE FlexibleInstances #-}
9−{-# LANGUAGE FunctionalDependencies #-}
10−{-# LANGUAGE GeneralizedNewtypeDeriving #-}
11−{-# LANGUAGE LambdaCase #-}
12−{-# LANGUAGE RankNTypes #-}
13−{-# LANGUAGE RecursiveDo #-}
14−{-# LANGUAGE ScopedTypeVariables #-}
15−{-# LANGUAGE StandaloneDeriving #-}
16−{-# LANGUAGE TupleSections #-}
17−{-# LANGUAGE TypeFamilies #-}
18−{-# LANGUAGE UndecidableInstances #-}
5+{-# Language UndecidableInstances #-}
196
207module Reflex.Vty.Widget
218 ( VtyWidgetCtx(..)
src/Reflex/Vty/Widget/Input.hs−2
@@ -2,8 +2,6 @@
22Module: Reflex.Vty.Widget.Input
33Description: User input widgets for reflex-vty
44-}
5−{-# LANGUAGE LambdaCase #-}
6−{-# LANGUAGE OverloadedStrings #-}
75module Reflex.Vty.Widget.Input
86 ( module Export
97 , module Reflex.Vty.Widget.Input
src/Reflex/Vty/Widget/Input/Text.hs−5
@@ -2,11 +2,6 @@
22Module: Reflex.Vty.Widget.Input.Text
33Description: Widgets for accepting text input from users and manipulating text within those inputs
44-}
5−{-# LANGUAGE FlexibleContexts #-}
6−{-# LANGUAGE LambdaCase #-}
7−{-# LANGUAGE OverloadedStrings #-}
8−{-# LANGUAGE RecursiveDo #-}
9−{-# LANGUAGE ScopedTypeVariables #-}
105module Reflex.Vty.Widget.Input.Text
116 ( module Reflex.Vty.Widget.Input.Text
127 , def
src/Reflex/Vty/Widget/Layout.hs−11
@@ -2,17 +2,6 @@
22Module: Reflex.Vty.Widget.Layout
33Description: Monad transformer and tools for arranging widgets and building screen layouts
44-}
5−{-# LANGUAGE AllowAmbiguousTypes #-}
6−{-# LANGUAGE FlexibleContexts #-}
7−{-# LANGUAGE FlexibleInstances #-}
8−{-# LANGUAGE GeneralizedNewtypeDeriving #-}
9−{-# LANGUAGE LambdaCase #-}
10−{-# LANGUAGE MultiParamTypeClasses #-}
11−{-# LANGUAGE RankNTypes #-}
12−{-# LANGUAGE RecordWildCards #-}
13−{-# LANGUAGE RecursiveDo #-}
14−{-# LANGUAGE ScopedTypeVariables #-}
15−{-# LANGUAGE TypeApplications #-}
165{-# LANGUAGE UndecidableInstances #-}
176
187