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