Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/generated-docs/
/.psc*
/.psa*
/.spago/
23 changes: 0 additions & 23 deletions bower.json

This file was deleted.

5 changes: 5 additions & 0 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.15.4-20221211/packages.dhall
sha256:d115f153861ffe27fafa4afa1d337d4fc5ae4969eee3427179b1b94ce3afa9b5

in upstream
20 changes: 20 additions & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ name = "lenses"
, dependencies =
[ "arrays"
, "colors"
, "console"
, "effect"
, "either"
, "foldable-traversable"
, "integers"
, "maybe"
, "ordered-collections"
, "prelude"
, "profunctor"
, "profunctor-lenses"
, "tuples"
, "unfoldable"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
}
14 changes: 5 additions & 9 deletions src/SumType.purs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ import Color (Color)
import Color as Color

import Data.Generic.Rep (class Generic)
import Data.Generic.Rep.Eq as GEq
import Data.Generic.Rep.Show as GShow
import Data.Maybe (Maybe(..), maybe)
import Data.Either (Either(..))
import Data.Show.Generic (genericShow)
import Data.Tuple (Tuple)
import Data.Traversable (class Traversable)

Expand Down Expand Up @@ -256,21 +255,18 @@ _hslaSolid = prism' constructor focuser
-- ... although Eq is only required for `only`.

derive instance genericPercent :: Generic Percent _
instance eqPercent :: Eq Percent where
eq = GEq.genericEq
derive instance eqPercent :: Eq Percent
instance showPercent :: Show Percent where
show (Percent f) = "(" <> show f <> "%)"

derive instance genericPoint :: Generic Point _
instance eqPoint :: Eq Point where
eq = GEq.genericEq
derive instance eqPoint :: Eq Point
instance showPoint :: Show Point where
show (Point x y) = "(" <> show x <> ", " <> show y <> ")"

derive instance genericFill :: Generic Fill _
instance eqFill :: Eq Fill where
eq = GEq.genericEq
derive instance eqFill :: Eq Fill
instance showFill :: Show Fill where
show x = GShow.genericShow x
show x = genericShow x


11 changes: 11 additions & 0 deletions test/Main.purs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Test.Main where

import Prelude

import Effect (Effect)
import Effect.Class.Console (log)

main :: Effect Unit
main = do
log "🍝"
log "You should add some tests."