@@ -29,7 +29,6 @@ module Prelude
29 , ComplementedLattice, not
29 , ComplementedLattice, not
30 , DistributiveLattice
30 , DistributiveLattice
31 , BooleanAlgebra
31 , BooleanAlgebra
32− , Bits, (.&.), (.|.), (.^.), shl, shr, zshr, complement
35 -- | The `Unit` type has a single inhabitant, called `unit`. It represents values with no computational content.
34 -- | The `Unit` type has a single inhabitant, called `unit`. It represents values with no computational content.
@@ -874,90 +873,6 @@ module Prelude
875 """ :: Boolean -> Boolean
874 """ :: Boolean -> Boolean
881− -- | The `Bits` type class identifies types which support bitwise operations.
883− (.&.) :: b -> b -> b
884− (.|.) :: b -> b -> b
885− (.^.) :: b -> b -> b
886− shl :: b -> Number -> b
887− shr :: b -> Number -> b
888− zshr :: b -> Number -> b
889− complement :: b -> b
891− instance bitsNumber :: Bits Number where
898− complement = numComplement
900− foreign import numAnd
902− function numAnd(n1) {
903− return function(n2) {
907− """ :: Number -> Number -> Number
909− foreign import numOr
911− function numOr(n1) {
912− return function(n2) {
916− """ :: Number -> Number -> Number
918− foreign import numXor
920− function numXor(n1) {
921− return function(n2) {
925− """ :: Number -> Number -> Number
927− foreign import numShl
929− function numShl(n1) {
930− return function(n2) {
934− """ :: Number -> Number -> Number
936− foreign import numShr
938− function numShr(n1) {
939− return function(n2) {
943− """ :: Number -> Number -> Number
945− foreign import numZshr
947− function numZshr(n1) {
948− return function(n2) {
952− """ :: Number -> Number -> Number
954− foreign import numComplement
956− function numComplement(n) {
959− """ :: Number -> Number
961module Data.Function where
876module Data.Function where
963 -- | The `on` function is used to change the domain of a binary operator.
878 -- | The `on` function is used to change the domain of a binary operator.