@@ -73,9 +73,9 @@ outputDFA target _ _ scheme dfa
73
73
. str " \" " . str (hex_chars ints) . str " \" #\n "
74
74
75
75
_ ->
76
- str nm . str " :: Array Int Int\n "
76
+ str nm . str " :: Data.Array. Array Int Int\n "
77
77
. str nm . str " = "
78
- . formatArray " listArray" upper_bound (map shows ints)
78
+ . formatArray " Data.Array. listArray" upper_bound (map shows ints)
79
79
. nl
80
80
81
81
outputAccept :: ShowS
@@ -84,7 +84,7 @@ outputDFA target _ _ scheme dfa
84
84
-- see: https://github.com/simonmar/alex/issues/98
85
85
-- str accept_nm . str " :: Array Int (AlexAcc " . str userStateTy . str ")\n"
86
86
str accept_nm . str " = "
87
- . formatArray " listArray" n_states (snd (mapAccumR outputAccs 0 accept))
87
+ . formatArray " Data.Array. listArray" n_states (snd (mapAccumR outputAccs 0 accept))
88
88
. nl
89
89
90
90
gscanActionType res =
@@ -95,63 +95,63 @@ outputDFA target _ _ scheme dfa
95
95
where
96
96
(nacts, acts) = mapAccumR outputActs 0 accept
97
97
actionsArray :: ShowS
98
- actionsArray = formatArray " array" nacts (concat acts)
98
+ actionsArray = formatArray " Data.Array. array" nacts (concat acts)
99
99
body :: ShowS
100
100
body = str actions_nm . str " = " . actionsArray . nl
101
101
signature :: ShowS
102
102
signature = case scheme of
103
103
Default { defaultTypeInfo = Just (Nothing , actionty) } ->
104
- str actions_nm . str " :: Array Int (" . str actionty . str " )\n "
104
+ str actions_nm . str " :: Data.Array. Array Int (" . str actionty . str " )\n "
105
105
Default { defaultTypeInfo = Just (Just tyclasses, actionty) } ->
106
106
str actions_nm . str " :: (" . str tyclasses
107
- . str " ) => Array Int (" . str actionty . str " )\n "
107
+ . str " ) => Data.Array. Array Int (" . str actionty . str " )\n "
108
108
GScan { gscanTypeInfo = Just (Nothing , toktype) } ->
109
- str actions_nm . str " :: Array Int ("
109
+ str actions_nm . str " :: Data.Array. Array Int ("
110
110
. gscanActionType toktype . str " )\n "
111
111
GScan { gscanTypeInfo = Just (Just tyclasses, toktype) } ->
112
112
str actions_nm . str " :: (" . str tyclasses
113
- . str " ) => Array Int ("
113
+ . str " ) => Data.Array. Array Int ("
114
114
. gscanActionType toktype . str " )\n "
115
115
Basic { basicStrType = strty,
116
116
basicTypeInfo = Just (Nothing , toktype) } ->
117
- str actions_nm . str " :: Array Int ("
117
+ str actions_nm . str " :: Data.Array. Array Int ("
118
118
. str (show strty) . str " -> " . str toktype
119
119
. str " )\n "
120
120
Basic { basicStrType = strty,
121
121
basicTypeInfo = Just (Just tyclasses, toktype) } ->
122
122
str actions_nm . str " :: (" . str tyclasses
123
- . str " ) => Array Int ("
123
+ . str " ) => Data.Array. Array Int ("
124
124
. str (show strty) . str " -> " . str toktype
125
125
. str " )\n "
126
126
Posn { posnStrType = strty,
127
127
posnTypeInfo = Just (Nothing , toktype) } ->
128
- str actions_nm . str " :: Array Int (AlexPosn -> "
128
+ str actions_nm . str " :: Data.Array. Array Int (AlexPosn -> "
129
129
. str (show strty) . str " -> " . str toktype
130
130
. str " )\n "
131
131
Posn { posnStrType = strty,
132
132
posnTypeInfo = Just (Just tyclasses, toktype) } ->
133
133
str actions_nm . str " :: (" . str tyclasses
134
- . str " ) => Array Int (AlexPosn -> "
134
+ . str " ) => Data.Array. Array Int (AlexPosn -> "
135
135
. str (show strty) . str " -> " . str toktype
136
136
. str " )\n "
137
137
Monad { monadStrType = strty,
138
138
monadTypeInfo = Just (Nothing , toktype) } ->
139
139
let
140
140
actintty = if strty == Lazy then " Int64" else " Int"
141
141
in
142
- str actions_nm . str " :: Array Int (AlexInput -> "
142
+ str actions_nm . str " :: Data.Array. Array Int (AlexInput -> "
143
143
. str actintty . str " -> Alex(" . str toktype . str " ))\n "
144
144
Monad { monadStrType = strty,
145
145
monadTypeInfo = Just (Just tyclasses, toktype) } ->
146
146
let
147
147
actintty = if strty == Lazy then " Int64" else " Int"
148
148
in
149
149
str actions_nm . str " :: (" . str tyclasses
150
- . str " ) => Array Int (AlexInput -> "
150
+ . str " ) => Data.Array. Array Int (AlexInput -> "
151
151
. str actintty . str " -> Alex(" . str toktype . str " ))\n "
152
152
_ ->
153
153
-- No type signature: we don't know what the type of the actions is.
154
- -- str accept_nm . str " :: Array Int (Accept Code)\n"
154
+ -- str accept_nm . str " :: Data.Array. Array Int (Accept Code)\n"
155
155
id
156
156
157
157
@@ -323,7 +323,7 @@ outputDFA target _ _ scheme dfa
323
323
= str code
324
324
325
325
-- outputArr arr
326
- -- = str "array " . shows (bounds arr) . space
326
+ -- = str "Data.Array. array " . shows (bounds arr) . space
327
327
-- . shows (assocs arr)
328
328
329
329
-- -----------------------------------------------------------------------------
0 commit comments