Hi,<br><br>I have a problem with the data constructor NodeMap<br>Data.Graph.Inductive.NodeMap <br>of the graph library fgl-5.4.2.3 (also fgl-5.4.2.2):<br><br>I cannot access the data constructor NodeMap, as the ghci session shows:<br>
<br><span style="color: rgb(0, 0, 153);">Prelude&gt; :m Data.Graph.Inductive.NodeMap</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">Prelude Data.Graph.Inductive.NodeMap&gt; :t NodeMap</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">&lt;interactive&gt;:1:0: Not in scope: data constructor `NodeMap&#39;</span><br><br><br>However, when I load the source directly it works:<br><br><span style="color: rgb(0, 0, 153);">Prelude&gt; :l Data/Graph/Inductive/NodeMap.hs</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">[1 of 3] Compiling Data.Graph.Inductive.Graph ( Data/Graph/Inductive/Graph.hs, interpreted )</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">[2 of 3] Compiling Data.Graph.Inductive.Internal.FiniteMap ( Data/Graph/Inductive/Internal/FiniteMap.hs, interpreted )</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">[3 of 3] Compiling Data.Graph.Inductive.NodeMap ( Data/Graph/Inductive/NodeMap.hs, interpreted )</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">Ok, modules loaded: Data.Graph.Inductive.Internal.FiniteMap, Data.Graph.Inductive.Graph, Data.Graph.Inductive.NodeMap.</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">*Data.Graph.Inductive.NodeMap&gt; :t NodeMap</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">NodeMap :: (Ord a) =&gt; FiniteMap a Node -&gt; Int -&gt; NodeMap a</span><br>
<br>Why is that so?<br><br>Afterall, my purpose is to get access to the map in a NodeMap and finally to apply lookup to it. But I don&#39;t know how to access the map from a NodeMap (the map selector isn&#39;t accessible either).<br>
<br>Immanuel<br>