Skip to content

Commit

Permalink
don't expose implementation details of the widget module
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-ba committed Oct 28, 2024
1 parent ed36cd0 commit c43f7fa
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
6 changes: 3 additions & 3 deletions WidgetRattus.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.18
name: WidgetRattus
version: 0.2
version: 0.3
category: FRP
synopsis: An asynchronous modal FRP language
description:
Expand All @@ -10,7 +10,7 @@ description:



homepage: https://github.com/pa-ba/AsyncRattus/
homepage: https://github.com/pa-ba/AsyncRattus/tree/WidgetRattus
bug-reports: https://github.com/pa-ba/AsyncRattus/issues
License: BSD3
License-file: LICENSE
Expand Down Expand Up @@ -40,7 +40,6 @@ library
WidgetRattus.Channels
WidgetRattus.Plugin.Annotation
WidgetRattus.Widgets
WidgetRattus.Widgets.Types

other-modules: WidgetRattus.Plugin.ScopeCheck
WidgetRattus.Plugin.SingleTick
Expand All @@ -51,6 +50,7 @@ library
WidgetRattus.Plugin.StableSolver
WidgetRattus.Plugin.Transform
WidgetRattus.Plugin.PrimExpr
WidgetRattus.Widgets.InternalTypes
WidgetRattus.Derive
build-depends: base >=4.16 && <5,
containers >= 0.6.5 && < 0.8,
Expand Down
49 changes: 47 additions & 2 deletions src/WidgetRattus/Widgets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,55 @@


module WidgetRattus.Widgets
(module WidgetRattus.Widgets.Types, module WidgetRattus.Widgets ) where
( Displayable (..)
, IsWidget (..)
, Widgets (..)
, Widget
, HStack
, VStack
, TextDropdown
, tddCurr
, tddEvent
, tddList
, Popup
, popCurr
, popEvent
, popChild
, Slider
, sldCurr
, sldEvent
, sldMin
, sldMax
, Button
, btnContent
, btnClick
, Label
, labText
, TextField
, tfContent
, tfInput
, mkButton
, mkTextField
, addInputSigTF
, mkLabel
, mkHStack
, mkConstHStack
, mkVStack
, mkConstVStack
, mkTextDropdown
, mkPopup
, mkSlider
, mkProgressBar
, btnOnClick
, btnOnClickSig
, setInputSigTF
, textFieldOnInput
, textFieldOnInputSig
, runApplication
) where

import WidgetRattus
import WidgetRattus.Widgets.Types
import WidgetRattus.Widgets.InternalTypes
import WidgetRattus.Signal
import Data.Text
import WidgetRattus.InternalPrimitives
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{-# LANGUAGE GADTs #-}


module WidgetRattus.Widgets.Types where
module WidgetRattus.Widgets.InternalTypes where

import WidgetRattus
import WidgetRattus.InternalPrimitives
Expand Down

0 comments on commit c43f7fa

Please sign in to comment.