Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
e432009b
Unverified
Commit
e432009b
authored
Sep 05, 2018
by
Vaibhav Sagar
Committed by
GitHub
Sep 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #931 from erikd/topic/widget-tll-warnings
ihaskell-widgets: Fix more warnings
parents
87787ec7
b27867f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
Types.hs
...ay/ihaskell-widgets/src/IHaskell/Display/Widgets/Types.hs
+8
-6
No files found.
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Types.hs
View file @
e432009b
...
@@ -16,9 +16,6 @@
...
@@ -16,9 +16,6 @@
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE CPP #-}
-- Can't make the compiler accept this file without this.
{-# OPTIONS_GHC -fno-warn-unticked-promoted-constructors #-}
-- | This module houses all the type-trickery needed to make widgets happen.
-- | This module houses all the type-trickery needed to make widgets happen.
--
--
-- All widgets have a corresponding 'WidgetType', and some fields/attributes/properties as defined
-- All widgets have a corresponding 'WidgetType', and some fields/attributes/properties as defined
...
@@ -300,12 +297,17 @@ type family WidgetFields (w :: WidgetType) :: [Field] where
...
@@ -300,12 +297,17 @@ type family WidgetFields (w :: WidgetType) :: [Field] where
WidgetFields
'L
a
belType
=
StringClass
WidgetFields
'L
a
belType
=
StringClass
WidgetFields
'T
e
xtType
=
WidgetFields
'T
e
xtType
=
StringClass
:++
[
'S
.
SubmitHandler
,
'S
.
ChangeHandler
]
StringClass
:++
[
'S
.
SubmitHandler
,
'S
.
ChangeHandler
]
WidgetFields
'T
e
xtAreaType
=
StringClass
:++
'[
S
.
ChangeHandler
]
-- Type level lists with a single element need both the list and the
-- constructor ticked, and a space between the open square bracket and
-- the first constructor. See https://ghc.haskell.org/trac/ghc/ticket/15601
WidgetFields
'T
e
xtAreaType
=
StringClass
:++
'[
'S
.
ChangeHandler
]
WidgetFields
'C
h
eckBoxType
=
BoolClass
WidgetFields
'C
h
eckBoxType
=
BoolClass
WidgetFields
'T
o
ggleButtonType
=
WidgetFields
'T
o
ggleButtonType
=
BoolClass
:++
[
'S
.
Tooltip
,
'S
.
Icon
,
'S
.
ButtonStyle
]
BoolClass
:++
[
'S
.
Tooltip
,
'S
.
Icon
,
'S
.
ButtonStyle
]
WidgetFields
'V
a
lidType
=
BoolClass
:++
'[
S
.
ReadOutMsg
]
WidgetFields
'V
a
lidType
=
BoolClass
:++
'[
'
S
.
ReadOutMsg
]
WidgetFields
'D
r
opdownType
=
SelectionClass
:++
'[
S
.
ButtonStyle
]
WidgetFields
'D
r
opdownType
=
SelectionClass
:++
'[
'
S
.
ButtonStyle
]
WidgetFields
'R
a
dioButtonsType
=
SelectionClass
WidgetFields
'R
a
dioButtonsType
=
SelectionClass
WidgetFields
'S
e
lectType
=
SelectionClass
WidgetFields
'S
e
lectType
=
SelectionClass
WidgetFields
'T
o
ggleButtonsType
=
WidgetFields
'T
o
ggleButtonsType
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment