on develop help sign in
cabal: Use default extensions
commit9fb317f572f3bd6b37dccc7407c8d40ca5282c5f authorAli Abrar <aliabrar@gmail.com> dateMon 15 Mar 2021, 14:18 (6 years ago) parent7fa7aa9
10 files changed+34−51
reflex-vty.cabal+30 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+1−8
reflex-vty.cabal+30
@@ -51,6 +51,36 @@ library
5151 hs-source-dirs: src
5252 default-language: Haskell2010
5353 ghc-options: -Wall
54+ default-extensions:
55+ BangPatterns
56+ ConstraintKinds
57+ CPP
58+ DataKinds
59+ DefaultSignatures
60+ DeriveFunctor
61+ DeriveGeneric
62+ FlexibleContexts
63+ FlexibleInstances
64+ FunctionalDependencies
65+ GADTs
66+ GeneralizedNewtypeDeriving
67+ KindSignatures
68+ LambdaCase
69+ MultiParamTypeClasses
70+ MultiWayIf
71+ OverloadedStrings
72+ PatternGuards
73+ PolyKinds
74+ QuasiQuotes
75+ RankNTypes
76+ RecursiveDo
77+ ScopedTypeVariables
78+ StandaloneDeriving
79+ TemplateHaskell
80+ TupleSections
81+ TypeApplications
82+ TypeFamilies
83+
5484
5585executable example
5686 hs-source-dirs: src-bin
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+1−8
@@ -2,14 +2,7 @@
22Module: Reflex.Vty.Widget.Layout
33Description: Monad transformer and tools for arranging widgets and building screen layouts
44-}
5−{-# LANGUAGE FlexibleInstances #-}
6−{-# LANGUAGE FunctionalDependencies #-}
7−{-# LANGUAGE GeneralizedNewtypeDeriving #-}
8−{-# LANGUAGE LambdaCase #-}
9−{-# LANGUAGE RecursiveDo #-}
10−{-# LANGUAGE ScopedTypeVariables #-}
11−{-# LANGUAGE OverloadedStrings #-}
12−{-# LANGUAGE UndecidableInstances #-}
5+{-# Language UndecidableInstances #-}
136
147module Reflex.Vty.Widget.Layout where
158