mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-25 10:03:07 +03:00
Added TODO for AppSpec.Entity.
This commit is contained in:
parent
18c5165df8
commit
41f8c531e5
@ -5,6 +5,12 @@ module Wasp.AppSpec.Entity (Entity (..), PSL (..)) where
|
||||
import Data.Data (Data)
|
||||
import Wasp.AppSpec.Core.Decl (IsDecl)
|
||||
|
||||
-- | TODO: Entity should be much more complex, it should not be just String, instead it should be
|
||||
-- whole AST that describes the entity schema.
|
||||
-- We should take a look at what entity looks like Wasp.Wasp.Entity and replicate that.
|
||||
-- Most challenging part will be parsing PSL from string into PSL.Ast.Model and then
|
||||
-- building Entity based on that. We actually have all that logic already, we just need to plug it in
|
||||
-- in the right places and that should be it.
|
||||
data Entity = Entity PSL
|
||||
deriving (Show, Eq, Data)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user