Skip to content

Commit

Permalink
yampa: Disable flag before release. Refs #274.
Browse files Browse the repository at this point in the history
The internal-core flag exposes Yampa's internals. This kind of facility
is discouraged by hackage.

This commit removes that flag altogether before the upload to hackage.
  • Loading branch information
ivanperez-keera committed Aug 8, 2023
1 parent cdf9df9 commit bc71344
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions yampa/Yampa.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,6 @@ flag examples
default: False
manual: True

-- WARNING: The following flag exposes Yampa's core. You should avoid using
-- this at all. The only reason to expose it is that we are using Yampa for
-- research, and many extensions require that we expose the constructors. No
-- released project should depend on this. In general, you should always
-- install Yampa with this flag disabled.
flag expose-core
description:
You can enable exposing some of Yampa's core constructs using
-fexpose-core.
.
Enabling this is an unsupported configuration, but it may be useful if you
are building an extension of Yampa for research and do not wish to fork
Yampa completely.
.
No released project should ever depend on this.
default: False
manual: True


library
exposed-modules:
Expand All @@ -113,6 +95,7 @@ library
other-modules:
-- Auxiliary (commonly used) types
FRP.Yampa.Diagnostics
FRP.Yampa.InternalCore

build-depends:
base < 6
Expand All @@ -134,14 +117,6 @@ library
build-depends:
fail == 4.9.*

if flag(expose-core)
exposed-modules:
FRP.Yampa.InternalCore
else
other-modules:
FRP.Yampa.InternalCore


test-suite hlint
type:
exitcode-stdio-1.0
Expand Down

0 comments on commit bc71344

Please sign in to comment.