Skip to content
Merged
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
44 changes: 17 additions & 27 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
Copyright Flipstone Technology Partners (c) 2021
Copyright (c) 2025 Flipstone Technology Partners

All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of Author name here nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: shrubbery
version: 0.2.3.2
github: "flipstone/shrubbery"
license: BSD3
license: MIT
author: "Flipstone Technology Partners, Inc"
maintainer: "development@flipstone.com"
maintainer: "maintainers@flipstone.com"
copyright: "2021-2025 Flipstone Technology Partners, Inc"

extra-source-files:
Expand Down
4 changes: 2 additions & 2 deletions shrubbery.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ description: Please see the README on GitHub at <https://github.com/flipstone
homepage: https://github.com/flipstone/shrubbery#readme
bug-reports: https://github.com/flipstone/shrubbery/issues
author: Flipstone Technology Partners, Inc
maintainer: development@flipstone.com
maintainer: maintainers@flipstone.com
copyright: 2021-2025 Flipstone Technology Partners, Inc
license: BSD3
license: MIT
license-file: LICENSE
build-type: Simple
tested-with:
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

@shrubbery@ provides programmatic branching constructs based on type-level lists that can be used to
write the equivalent of @case@ statements when the number and types of cases are not known ahead of
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/BranchIndex.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

This module provides types and functions for finding and using the index of a type within a
type-level list.
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/Branches.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

This modules provides functionality similar to Haskell's built-in case statements, but which can be
built at run time without losing exhaustivity checking. The technique to satisfy both these desires
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/Classes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

This module provides typeclasses for constructing and deconstructing types that have branches in
them. This is to say, sum types or any type that can present a sum-type-like interface.
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/Generic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{- |
Copyright : Flipstone Technology Partners 2022-2025
License : BSD3
License : MIT

This module provides tools that can be use in conjuction with the 'GHC.Generics' module to implement
Shrubbery's 'Dissection' and 'Unification' classes (and the 'BranchTypes' type family) with simple
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

This module provides facilities for parsing input values into sum types that implement the
'Unification' type classes. A 'Parser' is constructed by giving a handler for each type in the union
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/TaggedUnion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

@since 0.1.3.0
-}
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/TypeList.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

This module provides type families that are useful for working with type-level lists. Usually you
won't need to use these types directly as while using this package, but they may occasionally come
Expand Down
2 changes: 1 addition & 1 deletion src/Shrubbery/Union.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{- |
Copyright : Flipstone Technology Partners 2021-2025
License : BSD3
License : MIT

This module provides a implementation of a sum type whose members are known in the type sysem and
provides implementations of 'Dissection' and 'Unification'. It can be used as such:
Expand Down
Loading