Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 16d5531

Browse files
committed
Revert "Add a little lambda calculus to toy with."
This reverts commit 50813fd.
1 parent ccf8e1a commit 16d5531

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/Serializing/SExpression/Precise.hs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
{-# LANGUAGE DataKinds, DeriveGeneric, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, OverloadedStrings, ScopedTypeVariables, TypeApplications, TypeFamilies, TypeOperators, UndecidableInstances #-}
1+
{-# LANGUAGE DataKinds, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, OverloadedStrings, ScopedTypeVariables, TypeApplications, TypeFamilies, TypeOperators, UndecidableInstances #-}
22
module Serializing.SExpression.Precise
33
( serializeSExpression
4-
, Expr(..)
5-
, Identifier(..)
64
) where
75

86
import Data.ByteString.Builder
@@ -33,9 +31,8 @@ instance (ToSExpressionWithStrategy strategy t, strategy ~ ToSExpressionStrategy
3331
data Strategy = Generic | Show
3432

3533
type family ToSExpressionStrategy t :: Strategy where
36-
ToSExpressionStrategy Text = 'Show
37-
ToSExpressionStrategy Integer = 'Show
38-
ToSExpressionStrategy _ = 'Generic
34+
ToSExpressionStrategy Text = 'Show
35+
ToSExpressionStrategy _ = 'Generic
3936

4037
class ToSExpressionWithStrategy (strategy :: Strategy) t where
4138
toSExpressionWithStrategy :: proxy strategy -> t -> Int -> Builder
@@ -71,10 +68,3 @@ instance GToSExpression f => GToSExpression (M1 S s f) where
7168

7269
instance ToSExpression k => GToSExpression (K1 R k) where
7370
gtoSExpression k = pure . toSExpression (unK1 k)
74-
75-
76-
data Expr = Var Identifier | Lam Identifier Expr | App Expr Expr | Int Integer
77-
deriving (Generic)
78-
79-
newtype Identifier = Identifier Text
80-
deriving (Generic)

0 commit comments

Comments
 (0)