aboutsummaryrefslogtreecommitdiffstats
path: root/src/Data/JLD/Model
diff options
context:
space:
mode:
authorVolpeon <github@volpeon.ink>2023-06-24 11:14:19 +0200
committerVolpeon <github@volpeon.ink>2023-06-24 11:14:19 +0200
commit77447e837f7461a337eec09845ad4b24dea1cce4 (patch)
treea12f839d9233e26043b5a0329c10f15b546b5f7a /src/Data/JLD/Model
parentWIP: IRI compaction (diff)
downloadhs-jsonld-77447e837f7461a337eec09845ad4b24dea1cce4.tar.gz
hs-jsonld-77447e837f7461a337eec09845ad4b24dea1cce4.tar.bz2
hs-jsonld-77447e837f7461a337eec09845ad4b24dea1cce4.zip
Update
Diffstat (limited to 'src/Data/JLD/Model')
-rw-r--r--src/Data/JLD/Model/InverseContext.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/JLD/Model/InverseContext.hs b/src/Data/JLD/Model/InverseContext.hs
index ee85ce9..95cdeb8 100644
--- a/src/Data/JLD/Model/InverseContext.hs
+++ b/src/Data/JLD/Model/InverseContext.hs
@@ -12,7 +12,7 @@ type InverseContext = Map Text (Map Text (Map Keyword (Map Text Text)))
12 12
13hasKey3 :: Text -> Text -> Keyword -> InverseContext -> Bool 13hasKey3 :: Text -> Text -> Keyword -> InverseContext -> Bool
14hasKey3 var container type' inverseContext = 14hasKey3 var container type' inverseContext =
15 M.lookup var inverseContext >>= M.lookup container >>= M.lookup type' |> isJust 15 M.lookup var inverseContext >>= M.lookup container |> maybe False (M.member type')
16 16
17lookup4 :: Text -> Text -> Keyword -> Text -> InverseContext -> Maybe Text 17lookup4 :: Text -> Text -> Keyword -> Text -> InverseContext -> Maybe Text
18lookup4 var container type' typeMapping inverseContext = 18lookup4 var container type' typeMapping inverseContext =