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
3cca0604
Commit
3cca0604
authored
Aug 12, 2021
by
David Davó
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unified widget builders naming convention
parent
e2e48624
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
38 additions
and
38 deletions
+38
-38
Valid.hs
...askell-widgets/src/IHaskell/Display/Widgets/Bool/Valid.hs
+3
-3
Tab.hs
...rc/IHaskell/Display/Widgets/Box/SelectionContainer/Tab.hs
+3
-3
Interactive.hs
...skell-widgets/src/IHaskell/Display/Widgets/Interactive.hs
+2
-2
Audio.hs
...skell-widgets/src/IHaskell/Display/Widgets/Media/Audio.hs
+3
-3
Image.hs
...skell-widgets/src/IHaskell/Display/Widgets/Media/Image.hs
+3
-3
Video.hs
...skell-widgets/src/IHaskell/Display/Widgets/Media/Video.hs
+3
-3
Output.hs
...y/ihaskell-widgets/src/IHaskell/Display/Widgets/Output.hs
+3
-3
Combobox.hs
...l-widgets/src/IHaskell/Display/Widgets/String/Combobox.hs
+3
-3
HTML.hs
...skell-widgets/src/IHaskell/Display/Widgets/String/HTML.hs
+3
-3
HTMLMath.hs
...l-widgets/src/IHaskell/Display/Widgets/String/HTMLMath.hs
+3
-3
Label.hs
...kell-widgets/src/IHaskell/Display/Widgets/String/Label.hs
+3
-3
Password.hs
...l-widgets/src/IHaskell/Display/Widgets/String/Password.hs
+3
-3
Text.hs
...skell-widgets/src/IHaskell/Display/Widgets/String/Text.hs
+3
-3
No files found.
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Bool/Valid.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.Bool.Valid
(
-- * The Valid Widget
ValidWidget
-- * Constructor
,
mkValid
Widget
,
mkValid
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -32,8 +32,8 @@ import IHaskell.Display.Widgets.Style.DescriptionStyle
type
ValidWidget
=
IPythonWidget
'V
a
lidType
-- | Create a new output widget
mkValid
Widget
::
IO
ValidWidget
mkValid
Widget
=
do
mkValid
::
IO
ValidWidget
mkValid
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Box/SelectionContainer/Tab.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.Box.SelectionContainer.Tab
(
-- * The Tab widget
TabWidget
-- * Constructor
,
mkTab
Widget
,
mkTab
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -33,8 +33,8 @@ import IHaskell.Display.Widgets.Layout.LayoutWidget
type
TabWidget
=
IPythonWidget
'T
a
bType
-- | Create a new box
mkTab
Widget
::
IO
TabWidget
mkTab
Widget
=
do
mkTab
::
IO
TabWidget
mkTab
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Interactive.hs
View file @
3cca0604
...
...
@@ -148,7 +148,7 @@ liftToWidgets func rc initvals = do
initializers
=
rmap
extractInitializer
rc
bx
<-
mkBox
out
<-
mkOutput
Widget
out
<-
mkOutput
-- Create a list of widgets
widgets
<-
rtraverse
createWidget
constructors
...
...
@@ -214,7 +214,7 @@ instance FromWidget Text where
type
SuitableField
Text
=
'S
.
StringValue
data
Argument
Text
=
TextVal
Text
initializer
w
(
TextVal
txt
)
=
setField
w
StringValue
txt
wrapped
=
WrappedWidget
mkText
Widget
SubmitHandler
StringValue
wrapped
=
WrappedWidget
mkText
SubmitHandler
StringValue
instance
FromWidget
Integer
where
type
SuitableWidget
Integer
=
'I
n
tSliderType
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Media/Audio.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.Media.Audio
(
-- * The Audio Widget
AudioWidget
-- * Constructor
,
mkAudio
Widget
,
mkAudio
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -31,8 +31,8 @@ import IHaskell.Display.Widgets.Layout.LayoutWidget
type
AudioWidget
=
IPythonWidget
'A
u
dioType
-- | Create a new audio widget
mkAudio
Widget
::
IO
AudioWidget
mkAudio
Widget
=
do
mkAudio
::
IO
AudioWidget
mkAudio
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Media/Image.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.Media.Image
(
-- * The Image Widget
ImageWidget
-- * Constructor
,
mkImage
Widget
,
mkImage
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -31,8 +31,8 @@ import IHaskell.Display.Widgets.Layout.LayoutWidget
type
ImageWidget
=
IPythonWidget
'I
m
ageType
-- | Create a new image widget
mkImage
Widget
::
IO
ImageWidget
mkImage
Widget
=
do
mkImage
::
IO
ImageWidget
mkImage
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Media/Video.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.Media.Video
(
-- * The Video Widget
VideoWidget
-- * Constructor
,
mkVideo
Widget
,
mkVideo
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -31,8 +31,8 @@ import IHaskell.Display.Widgets.Layout.LayoutWidget
type
VideoWidget
=
IPythonWidget
'V
i
deoType
-- | Create a new video widget
mkVideo
Widget
::
IO
VideoWidget
mkVideo
Widget
=
do
mkVideo
::
IO
VideoWidget
mkVideo
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Output.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.Output
(
-- * The Output Widget
OutputWidget
-- * Constructor
,
mkOutput
Widget
,
mkOutput
-- * Using the output widget
,
appendStdout
,
appendStderr
...
...
@@ -40,8 +40,8 @@ import IHaskell.Display.Widgets.Layout.LayoutWidget
type
OutputWidget
=
IPythonWidget
'O
u
tputType
-- | Create a new output widget
mkOutput
Widget
::
IO
OutputWidget
mkOutput
Widget
=
do
mkOutput
::
IO
OutputWidget
mkOutput
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/String/Combobox.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.String.Combobox
(
-- * The Combobox Widget
ComboboxWidget
-- * Constructor
,
mkCombobox
Widget
,
mkCombobox
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -33,8 +33,8 @@ import IHaskell.Display.Widgets.Style.DescriptionStyle
type
ComboboxWidget
=
IPythonWidget
'C
o
mboboxType
-- | Create a new Combobox widget
mkCombobox
Widget
::
IO
ComboboxWidget
mkCombobox
Widget
=
do
mkCombobox
::
IO
ComboboxWidget
mkCombobox
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/String/HTML.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.String.HTML
(
-- * The HTML Widget
HTMLWidget
-- * Constructor
,
mkHTML
Widget
,
mkHTML
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -30,8 +30,8 @@ import IHaskell.Display.Widgets.Style.DescriptionStyle
type
HTMLWidget
=
IPythonWidget
'H
T
MLType
-- | Create a new HTML widget
mkHTML
Widget
::
IO
HTMLWidget
mkHTML
Widget
=
do
mkHTML
::
IO
HTMLWidget
mkHTML
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/String/HTMLMath.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.String.HTMLMath
(
-- * The HTMLMath Widget
HTMLMathWidget
-- * Constructor
,
mkHTMLMath
Widget
,
mkHTMLMath
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -30,8 +30,8 @@ import IHaskell.Display.Widgets.Style.DescriptionStyle
type
HTMLMathWidget
=
IPythonWidget
'H
T
MLMathType
-- | Create a new HTML widget
mkHTMLMath
Widget
::
IO
HTMLMathWidget
mkHTMLMath
Widget
=
do
mkHTMLMath
::
IO
HTMLMathWidget
mkHTMLMath
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/String/Label.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.String.Label
(
-- * The Label Widget
LabelWidget
-- * Constructor
,
mkLabel
Widget
,
mkLabel
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -30,8 +30,8 @@ import IHaskell.Display.Widgets.Style.DescriptionStyle
type
LabelWidget
=
IPythonWidget
'L
a
belType
-- | Create a new Label widget
mkLabel
Widget
::
IO
LabelWidget
mkLabel
Widget
=
do
mkLabel
::
IO
LabelWidget
mkLabel
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/String/Password.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.String.Password
(
-- * The Password Widget
PasswordWidget
-- * Constructor
,
mkPassword
Widget
,
mkPassword
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -32,8 +32,8 @@ import IHaskell.Display.Widgets.Style.DescriptionStyle
type
PasswordWidget
=
IPythonWidget
'P
a
sswordType
-- | Create a new Password widget
mkPassword
Widget
::
IO
PasswordWidget
mkPassword
Widget
=
do
mkPassword
::
IO
PasswordWidget
mkPassword
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/String/Text.hs
View file @
3cca0604
...
...
@@ -9,7 +9,7 @@ module IHaskell.Display.Widgets.String.Text
(
-- * The Text Widget
TextWidget
-- * Constructor
,
mkText
Widget
,
mkText
)
where
-- To keep `cabal repl` happy when running from the ihaskell repo
...
...
@@ -32,8 +32,8 @@ import IHaskell.Display.Widgets.Style.DescriptionStyle
type
TextWidget
=
IPythonWidget
'T
e
xtType
-- | Create a new Text widget
mkText
Widget
::
IO
TextWidget
mkText
Widget
=
do
mkText
::
IO
TextWidget
mkText
=
do
-- Default properties, with a random uuid
wid
<-
U
.
random
layout
<-
mkLayout
...
...
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